]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
Staging: rtl8712: Remove unnecessary cast on void pointer
authorLucas Tanure <tanure@linux.com>
Wed, 20 Jan 2016 02:52:13 +0000 (00:52 -0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 03:52:30 +0000 (19:52 -0800)
commiteaf0e7966d485b4524c1fc278922e4197ec273cc
tree920ff7f7486a3de8ea3df980954edc7fb60df29a
parent7c2a2017e5a2a07ffb7732ed88e935824b70b6fb
Staging: rtl8712: Remove unnecessary cast on void pointer

The conversion from void pointer to any other pointer type is guaranteed
by the C programming language.

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
)

Signed-off-by: Lucas Tanure <tanure@linux.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_rtl.c