diff mbox series

[10/20] usb: gadget: m66592-udc: remove useless cast for driver.name

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

Commit Message

Corentin LABBE Feb. 18, 2020, 7:32 p.m. UTC
device_driver name is const char pointer, so it not useful to cast
udc_name (which is already const char).
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 drivers/usb/gadget/udc/m66592-udc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/gadget/udc/m66592-udc.c b/drivers/usb/gadget/udc/m66592-udc.c
index a8288df6aadf..75d16a8902e6 100644
--- a/drivers/usb/gadget/udc/m66592-udc.c
+++ b/drivers/usb/gadget/udc/m66592-udc.c
@@ -1691,7 +1691,7 @@  static int m66592_probe(struct platform_device *pdev)
 static struct platform_driver m66592_driver = {
 	.remove =	m66592_remove,
 	.driver		= {
-		.name =	(char *) udc_name,
+		.name =	udc_name,
 	},
 };