diff options
author | Janani Ravichandran <janani.rvchndrn@gmail.com> | 2016-02-25 14:37:56 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 86790d33da72dc5a1c50cef0aa3a5cb44dcc0dc6 (patch) | |
tree | e80399cf830315c2fafdf0230278cbc917c114f4 /drivers/staging/rts5208 | |
parent | b7a22f8d0a84c21ad0458c386f2fb2986702fa5d (diff) | |
download | blackbird-op-linux-86790d33da72dc5a1c50cef0aa3a5cb44dcc0dc6.tar.gz blackbird-op-linux-86790d33da72dc5a1c50cef0aa3a5cb44dcc0dc6.zip |
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 <janani.rvchndrn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rts5208')
-rw-r--r-- | drivers/staging/rts5208/rtsx.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |