]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
atm: zatm: remove redundant pointer zatm_dev
authorColin Ian King <colin.king@canonical.com>
Mon, 2 Jul 2018 07:37:21 +0000 (08:37 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 2 Jul 2018 13:47:15 +0000 (22:47 +0900)
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>
drivers/atm/zatm.c

index a8d2eb0ceb8d8f78788182f81f8e1e9f9dc8fbbb..1e41cfbb37084fdcfbf458e4d802b9006b8b043d 100644 (file)
@@ -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)