usb: gadget: udc: max3420_udc: Remove set, but never checked variable 'addr'
authorLee Jones <lee.jones@linaro.org>
Mon, 6 Jul 2020 13:33:32 +0000 (14:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Jul 2020 15:19:58 +0000 (17:19 +0200)
commit1a4f38a6224a891dfec56c7459e4309fe5f073d6
treecf338b1edcc950275cbc9ae69db100c52b670ba6
parent8834f60d6ba2dc3b3855c0b92bce1429ef7da6a5
usb: gadget: udc: max3420_udc: Remove set, but never checked variable 'addr'

Fixes the following W=1 kernel build warning(s):

 drivers/usb/gadget/udc/max3420_udc.c: In function ‘max3420_handle_setup’:
 drivers/usb/gadget/udc/max3420_udc.c:626:5: warning: variable ‘addr’ set but not used [-Wunused-but-set-variable]
 626 | u8 addr;
 | ^~~~

Cc: Felipe Balbi <balbi@kernel.org>
Cc: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Acked-by: Jassi Brar <jaswinder.singh@linaro.org>
Link: https://lore.kernel.org/r/20200706133341.476881-24-lee.jones@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/max3420_udc.c