lkml.org 
[lkml]   [2023]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] char/pcmcia: remove unnecessary (void*) conversions
Date
Pointer variables of void * type do not require type cast.

Signed-off-by: Yu Zhe <yuzhe@nfschina.com>
---
drivers/char/pcmcia/scr24x_cs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/char/pcmcia/scr24x_cs.c b/drivers/char/pcmcia/scr24x_cs.c
index 1bdce08fae3d..24fff2c2245c 100644
--- a/drivers/char/pcmcia/scr24x_cs.c
+++ b/drivers/char/pcmcia/scr24x_cs.c
@@ -290,7 +290,7 @@ static int scr24x_probe(struct pcmcia_device *link)

static void scr24x_remove(struct pcmcia_device *link)
{
- struct scr24x_dev *dev = (struct scr24x_dev *)link->priv;
+ struct scr24x_dev *dev = link->priv;

device_destroy(scr24x_class, MKDEV(MAJOR(scr24x_devt), dev->devno));
mutex_lock(&dev->lock);
--
2.11.0
\
 
 \ /
  Last update: 2023-03-27 01:03    [W:1.151 / U:1.148 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site