Skip to contentSkip to conversation

pcmcia: omap: remove useless cast for driver.name

PATCH Applied Corentin Labbe 2 participants 2 messages Feb 18, 2020 – Mar 15, 2020 Pcmcia

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pcmcia: omap: 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).

---
 drivers/pcmcia/omap_cf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pcmcia/omap_cf.c +1 -1
index 0a04eb04f3a2..d3ef5534991e 100644
@@ -329,7 +329,7 @@ static int __exit omap_cf_remove(struct platform_device *pdev)
 
 static struct platform_driver omap_cf_driver = {
 	.driver = {
-		.name	= (char *) driver_name,
+		.name	= driver_name,
 	},
 	.remove		= __exit_p(omap_cf_remove),
 };
Signature · 1 line
2.24.1