Messages in this thread Patch in this message | | | From | Yu Zhe <> | Subject | [PATCH] char/pcmcia: remove unnecessary (void*) conversions | Date | Thu, 16 Mar 2023 16:43:55 +0800 |
| |
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
| |