Thread (2 messages) 2 messages, 2 authors, 2018-01-27

USB: wusbcore: remove redundant re-assignment to pointer 'dev'

From: Johan Hovold <johan@kernel.org>
Date: 2018-01-27 05:17:13
Also in: kernel-janitors, lkml

On Fri, Jan 26, 2018 at 03:07:12PM +0000, Colin King wrote:
From: Colin Ian King <redacted>

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 <redacted>
Reviewed-by: Johan Hovold <johan@kernel.org>
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help