2023-03-16 08:44:54

by Yu Zhe

[permalink] [raw]
Subject: [PATCH] char/pcmcia: remove unnecessary (void*) conversions

Pointer variables of void * type do not require type cast.

Signed-off-by: Yu Zhe <[email protected]>
---
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



2023-03-29 10:23:41

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH] char/pcmcia: remove unnecessary (void*) conversions

On Thu, Mar 16, 2023 at 04:43:55PM +0800, Yu Zhe wrote:
> Pointer variables of void * type do not require type cast.
>
> Signed-off-by: Yu Zhe <[email protected]>
> ---
> drivers/char/pcmcia/scr24x_cs.c | 2 +-

Sorry, but this file is now deleted from the tree.

greg k-h