diff mbox series

[17/20] usb: host: sl811-hcd: remove useless cast for driver.name

Message ID 1582054383-35760-18-git-send-email-clabbe@baylibre.com (mailing list archive)
State Mainlined
Commit bb7458c2f4a90c8ff666f0412d4b11be01e5a9f6
Headers show
Series usb: remove useless cast for driver.name | expand

Commit Message

Corentin LABBE Feb. 18, 2020, 7:33 p.m. UTC
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>
---
 drivers/usb/host/sl811-hcd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/host/sl811-hcd.c b/drivers/usb/host/sl811-hcd.c
index 72a34a1eb618..adaf4063690a 100644
--- a/drivers/usb/host/sl811-hcd.c
+++ b/drivers/usb/host/sl811-hcd.c
@@ -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);