1
0
Fork 0
alistair23-linux/drivers/staging/emxx_udc
Nathan Chancellor 97972ccc08 staging: emxx_udc: Remove unused device_desc declaration
Clang warns:

drivers/staging/emxx_udc/emxx_udc.c:1373:37: warning: variable
'device_desc' is not needed and will not be emitted
[-Wunneeded-internal-declaration]
static struct usb_device_descriptor device_desc = {
                                    ^
1 warning generated.

This definition hasn't been attached to anything since the driver was
introduced in commit 33aa8d45a4 ("staging: emxx_udc: Add Emma Mobile
USB Gadget driver") and neither GCC nor Clang emit any reference to the
variable in the final assembly. The only reason GCC doesn't warn about
this variable being unused is the sizeof function.

Reported-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-10-09 15:13:24 +02:00
..
Kconfig staging: emxx_udc: Change platform dependency to ARCH_RENESAS 2018-04-23 10:32:04 +02:00
Makefile
TODO staging: emxx_udc: Add GPIO descriptor work to TODO 2018-04-23 14:36:10 +02:00
emxx_udc.c staging: emxx_udc: Remove unused device_desc declaration 2018-10-09 15:13:24 +02:00
emxx_udc.h staging: emxx_udc: remove redundant license text 2018-01-15 16:03:46 +01:00