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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
351a8d4837
commit
65f4b15cf4
@@ -93,7 +93,6 @@ static void wa_notif_dispatch(struct work_struct *ws)
|
|||||||
goto out; /* screw it */
|
goto out; /* screw it */
|
||||||
#endif
|
#endif
|
||||||
atomic_dec(&wa->notifs_queued); /* Throttling ctl */
|
atomic_dec(&wa->notifs_queued); /* Throttling ctl */
|
||||||
dev = &wa->usb_iface->dev;
|
|
||||||
size = nw->size;
|
size = nw->size;
|
||||||
itr = nw->data;
|
itr = nw->data;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user