]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
USB: wusbcore: remove redundant re-assignment to pointer 'dev'
authorColin Ian King <colin.king@canonical.com>
Fri, 26 Jan 2018 15:07:12 +0000 (15:07 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Mar 2018 17:16:19 +0000 (09:16 -0800)
Pointer dev is initialized and then re-assigned with the same value
a little later, hence the second assignment is redundant and can be
removed.

Cleans up clang warning:
drivers/usb/wusbcore/wa-nep.c:88:17: warning: Value stored to 'dev'
during its initialization is never read

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/wusbcore/wa-nep.c

index 9fdcb6b84abf0b6382717e54240a3e89d29951fd..5f0656db5482db86932bff482609f30336189cc2 100644 (file)
@@ -93,7 +93,6 @@ static void wa_notif_dispatch(struct work_struct *ws)
                goto out;                               /* screw it */
 #endif
        atomic_dec(&wa->notifs_queued);         /* Throttling ctl */
-       dev = &wa->usb_iface->dev;
        size = nw->size;
        itr = nw->data;