diff options
author | Colin Ian King | 2018-07-02 09:37:21 +0200 |
---|---|---|
committer | David S. Miller | 2018-07-02 15:47:15 +0200 |
commit | 50d4feb5e60e64a8c3053414483e7457be2f111d (patch) | |
tree | f047990928c23dde9bb17e8dd770f27a3a4672dc /drivers | |
parent | net: phy: realtek: add support for RTL8211C (diff) | |
download | kernel-qcow2-linux-50d4feb5e60e64a8c3053414483e7457be2f111d.tar.gz kernel-qcow2-linux-50d4feb5e60e64a8c3053414483e7457be2f111d.tar.xz kernel-qcow2-linux-50d4feb5e60e64a8c3053414483e7457be2f111d.zip |
atm: zatm: remove redundant pointer zatm_dev
Pointer zatm_dev is being assigned but is never used hence it is redundant
and can be removed.
Cleans up clang warning:
warning: variable 'zatm_dev' set but not used [-Wunused-but-set-variable]
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/atm/zatm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/atm/zatm.c b/drivers/atm/zatm.c index a8d2eb0ceb8d..1e41cfbb3708 100644 --- a/drivers/atm/zatm.c +++ b/drivers/atm/zatm.c @@ -1385,14 +1385,12 @@ static void zatm_close(struct atm_vcc *vcc) static int zatm_open(struct atm_vcc *vcc) { - struct zatm_dev *zatm_dev; struct zatm_vcc *zatm_vcc; short vpi = vcc->vpi; int vci = vcc->vci; int error; DPRINTK(">zatm_open\n"); - zatm_dev = ZATM_DEV(vcc->dev); if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) vcc->dev_data = NULL; if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) |