Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Colin Ian King and committed by
Greg Kroah-Hartman
65f4b15c 351a8d48

-1
-1
drivers/usb/wusbcore/wa-nep.c
··· 93 93 goto out; /* screw it */ 94 94 #endif 95 95 atomic_dec(&wa->notifs_queued); /* Throttling ctl */ 96 - dev = &wa->usb_iface->dev; 97 96 size = nw->size; 98 97 itr = nw->data; 99 98