Re: [PATCH] net: hso: remove redundant unused variable dev

From
Johan Hovold <johan@kernel.org>
Date
2017-10-31 13:22:50
Also in
kernel-janitors, lkml
Reply to
Colin King, 2017-10-31
On Tue, Oct 31, 2017 at 12:01:47PM +0000, Colin King wrote:
From: Colin Ian King <redacted>

The pointer dev is being assigned but is never used, hence it is
redundant and can be removed. Cleans up clang warning:

drivers/net/usb/hso.c:2280:2: warning: Value stored to 'dev' is
never read
You could also have mentioned that it was a leftover since commit
4134069f3ea6 ("hso: Use static attribute groups for sysfs entry").
Signed-off-by: Colin Ian King <redacted>
Reviewed-by: Johan Hovold <johan@kernel.org>

Thanks,
Johan
Thread (3 messages) 3 messages, 3 authors, last reply 2017-11-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help