usb: host: sl811-hcd: remove useless cast for driver.name
authorCorentin Labbe <clabbe@baylibre.com>
Tue, 18 Feb 2020 19:33:00 +0000 (19:33 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Feb 2020 10:10:27 +0000 (11:10 +0100)
device_driver name is const char pointer, so it not useful to cast
hcd_name (which is already const char).

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Link: https://lore.kernel.org/r/1582054383-35760-18-git-send-email-clabbe@baylibre.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/sl811-hcd.c

index 72a34a1eb6189c4ab0fa055e3d339ab297cab72e..adaf4063690a451b6a3106f7079317268ecddc25 100644 (file)
@@ -1792,7 +1792,7 @@ struct platform_driver sl811h_driver = {
        .suspend =      sl811h_suspend,
        .resume =       sl811h_resume,
        .driver = {
-               .name = (char *) hcd_name,
+               .name = hcd_name,
        },
 };
 EXPORT_SYMBOL(sl811h_driver);