linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] char/pcmcia: remove unnecessary (void*) conversions
@ 2023-03-16  8:43 Yu Zhe
  2023-03-29 10:20 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Yu Zhe @ 2023-03-16  8:43 UTC (permalink / raw)
  To: lkundrak, arnd, gregkh; +Cc: linux-kernel, kernel-janitors, liqiong, Yu Zhe

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


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

* Re: [PATCH] char/pcmcia: remove unnecessary (void*) conversions
  2023-03-16  8:43 [PATCH] char/pcmcia: remove unnecessary (void*) conversions Yu Zhe
@ 2023-03-29 10:20 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2023-03-29 10:20 UTC (permalink / raw)
  To: Yu Zhe; +Cc: lkundrak, arnd, linux-kernel, kernel-janitors, liqiong

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 <yuzhe@nfschina.com>
> ---
>  drivers/char/pcmcia/scr24x_cs.c | 2 +-

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

greg k-h

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

end of thread, other threads:[~2023-03-29 10:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-16  8:43 [PATCH] char/pcmcia: remove unnecessary (void*) conversions Yu Zhe
2023-03-29 10:20 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).