Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

usb: gadget: omap_udc: remove useless cast for driver.name

device_driver name is const char pointer, so it not useful to cast
driver_name (which is already const char).

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/1582054383-35760-13-git-send-email-clabbe@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Corentin Labbe and committed by
Greg Kroah-Hartman
676edc20 8d57a84a

+1 -1
+1 -1
drivers/usb/gadget/udc/omap_udc.c
··· 3001 3001 .suspend = omap_udc_suspend, 3002 3002 .resume = omap_udc_resume, 3003 3003 .driver = { 3004 - .name = (char *) driver_name, 3004 + .name = driver_name, 3005 3005 }, 3006 3006 }; 3007 3007