diff options
author | Tapasweni Pathak <tapaswenipathak@gmail.com> | 2014-10-30 17:01:52 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-30 13:05:46 -0700 |
commit | d591f5d0e548cb79a942be5fd86fbc714b530a39 (patch) | |
tree | 07cb6bb039fb78c58075772e0a9e0ad8269b61f3 /drivers/staging/dgap | |
parent | 12c492cf462704fcfc8c86046d539c16d57dfbe3 (diff) | |
download | lwn-d591f5d0e548cb79a942be5fd86fbc714b530a39.tar.gz lwn-d591f5d0e548cb79a942be5fd86fbc714b530a39.zip |
staging: dgap: Remove useless cast on void pointer
void pointers do not need to be cast to other pointer types.
The semantic patch used to find this:
@r@
expression x;
void* e;
type T;
identifier f;
@@
(
*((T *)e)
|
((T *)x)[...]
|
((T *)x)->f
|
- (T *)
e
)
Build tested it.
Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgap')
-rw-r--r-- | drivers/staging/dgap/dgap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgap/dgap.c b/drivers/staging/dgap/dgap.c index dfdf20969987..105c3b8f4024 100644 --- a/drivers/staging/dgap/dgap.c +++ b/drivers/staging/dgap/dgap.c @@ -1167,7 +1167,7 @@ schedule_poller: */ static irqreturn_t dgap_intr(int irq, void *voidbrd) { - struct board_t *brd = (struct board_t *) voidbrd; + struct board_t *brd = voidbrd; if (!brd) return IRQ_NONE; |