Commit 50d4feb5 authored by Colin Ian King's avatar Colin Ian King Committed by David S. Miller

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: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent cf87915c
...@@ -1385,14 +1385,12 @@ static void zatm_close(struct atm_vcc *vcc) ...@@ -1385,14 +1385,12 @@ static void zatm_close(struct atm_vcc *vcc)
static int zatm_open(struct atm_vcc *vcc) static int zatm_open(struct atm_vcc *vcc)
{ {
struct zatm_dev *zatm_dev;
struct zatm_vcc *zatm_vcc; struct zatm_vcc *zatm_vcc;
short vpi = vcc->vpi; short vpi = vcc->vpi;
int vci = vcc->vci; int vci = vcc->vci;
int error; int error;
DPRINTK(">zatm_open\n"); DPRINTK(">zatm_open\n");
zatm_dev = ZATM_DEV(vcc->dev);
if (!test_bit(ATM_VF_PARTIAL,&vcc->flags)) if (!test_bit(ATM_VF_PARTIAL,&vcc->flags))
vcc->dev_data = NULL; vcc->dev_data = NULL;
if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC) if (vci != ATM_VPI_UNSPEC && vpi != ATM_VCI_UNSPEC)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment