mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] pcmcia: omap: remove useless cast for driver.name
@ 2020-02-18 20:07 Corentin Labbe
  2020-03-14 13:36 ` Dominik Brodowski
  0 siblings, 1 reply; 2+ messages in thread
From: Corentin Labbe @ 2020-02-18 20:07 UTC (permalink / raw)
  To: linux; +Cc: linux-kernel, Corentin Labbe

device_driver name is const char pointer, so it not useful to cast
driver_name (which is already const char).

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 drivers/pcmcia/omap_cf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/pcmcia/omap_cf.c b/drivers/pcmcia/omap_cf.c
index 0a04eb04f3a2..d3ef5534991e 100644
--- a/drivers/pcmcia/omap_cf.c
+++ b/drivers/pcmcia/omap_cf.c
@@ -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),
 };
-- 
2.24.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] pcmcia: omap: remove useless cast for driver.name
  2020-02-18 20:07 [PATCH] pcmcia: omap: remove useless cast for driver.name Corentin Labbe
@ 2020-03-14 13:36 ` Dominik Brodowski
  0 siblings, 0 replies; 2+ messages in thread
From: Dominik Brodowski @ 2020-03-14 13:36 UTC (permalink / raw)
  To: Corentin Labbe; +Cc: linux-kernel

On Tue, Feb 18, 2020 at 08:07:16PM +0000, Corentin Labbe wrote:
> device_driver name is const char pointer, so it not useful to cast
> driver_name (which is already const char).
> 
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>

Applied to pmcia-next.

Thanks,
	Dominik

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-03-15  1:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-02-18 20:07 [PATCH] pcmcia: omap: remove useless cast for driver.name Corentin Labbe
2020-03-14 13:36 ` Dominik Brodowski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®