usb: gadget: udc: remove unused 'driver_desc'
authorJason Yan <yanaijie@huawei.com>
Fri, 17 Apr 2020 07:31:37 +0000 (15:31 +0800)
committerFelipe Balbi <balbi@kernel.org>
Mon, 25 May 2020 08:09:37 +0000 (11:09 +0300)
Fix the following gcc warning:

drivers/usb/gadget/udc/gr_udc.c:51:19: warning: â€˜driver_desc’ defined
but not used [-Wunused-const-variable=]
 static const char driver_desc[] = DRIVER_DESC;
                   ^~~~~~~~~~~

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
drivers/usb/gadget/udc/gr_udc.c

index aaf975c809bf9364c130d87de887cdfe758ef24b..7164ad9800f11a8633d7f551b61011aba45e5d80 100644 (file)
@@ -48,7 +48,6 @@
 #define        DRIVER_DESC     "Aeroflex Gaisler GRUSBDC USB Peripheral Controller"
 
 static const char driver_name[] = DRIVER_NAME;
-static const char driver_desc[] = DRIVER_DESC;
 
 #define gr_read32(x) (ioread32be((x)))
 #define gr_write32(x, v) (iowrite32be((v), (x)))