summaryrefslogtreecommitdiffstats
path: root/drivers/usb/wusbcore
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-26 15:07:12 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-09 09:16:19 -0800
commit65f4b15cf4db1d6bc7fbe5a49e48f6969af8cd2d (patch)
treeea03f7be46559eee6293d7846802ea03b9397f42 /drivers/usb/wusbcore
parent351a8d4837ae0d61744e64262c3a80ab92ff3e42 (diff)
downloadlinux-stable-65f4b15cf4db1d6bc7fbe5a49e48f6969af8cd2d.tar.gz
linux-stable-65f4b15cf4db1d6bc7fbe5a49e48f6969af8cd2d.tar.bz2
linux-stable-65f4b15cf4db1d6bc7fbe5a49e48f6969af8cd2d.zip
USB: wusbcore: remove redundant re-assignment to pointer 'dev'
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>
Diffstat (limited to 'drivers/usb/wusbcore')
-rw-r--r--drivers/usb/wusbcore/wa-nep.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/usb/wusbcore/wa-nep.c b/drivers/usb/wusbcore/wa-nep.c
index 9fdcb6b84abf..5f0656db5482 100644
--- a/drivers/usb/wusbcore/wa-nep.c
+++ b/drivers/usb/wusbcore/wa-nep.c
@@ -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;