From: Janani Ravichandran Date: Thu, 25 Feb 2016 19:37:56 +0000 (-0500) Subject: staging: rts5208: rtsx.c: Drop unneeded void pointer cast X-Git-Tag: v4.6-rc1~103^2~159 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=86790d33da72dc5a1c50cef0aa3a5cb44dcc0dc6;p=karo-tx-linux.git staging: rts5208: rtsx.c: Drop unneeded void pointer cast Void pointers need not be cast to other pointer types. Semantic patch used: @r@ expression x; void *e; type T; identifier f; @@ ( *((T *)e) | ((T *)x) [...] | ((T *)x)->f | - (T *) e ) Signed-off-by: Janani Ravichandran Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rts5208/rtsx.c b/drivers/staging/rts5208/rtsx.c index d23f85344722..62204b5bcdf4 100644 --- a/drivers/staging/rts5208/rtsx.c +++ b/drivers/staging/rts5208/rtsx.c @@ -713,7 +713,7 @@ static void release_everything(struct rtsx_dev *dev) /* Thread to carry out delayed SCSI-device scanning */ static int rtsx_scan_thread(void *__dev) { - struct rtsx_dev *dev = (struct rtsx_dev *)__dev; + struct rtsx_dev *dev = __dev; struct rtsx_chip *chip = dev->chip; /* Wait for the timeout to expire or for a disconnect */