usb: gadget: lpc32xx_udc: remove useless cast for driver.name
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 18 Feb 2020 19:32:52 +0000 (19:32 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 10:10:25 +0000 (11:10 +0100)
device_driver name is const char pointer, so it not useful to cast
driver_name (which is already const char).

Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/1582054383-35760-10-git-send-email-clabbe@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/lpc32xx_udc.c

index d14b2bb..cb997b8 100644 (file)
@@ -3267,7 +3267,7 @@ static struct platform_driver lpc32xx_udc_driver = {
        .suspend        = lpc32xx_udc_suspend,
        .resume         = lpc32xx_udc_resume,
        .driver         = {
-               .name   = (char *) driver_name,
+               .name   = driver_name,
                .of_match_table = of_match_ptr(lpc32xx_udc_of_match),
        },
 };