]> git.baikalelectronics.ru Git - 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)
commit6e18f3decfa7d460a6726e1f9b1bdf38abd28cc9
tree920ff7f7486a3de8ea3df980954edc7fb60df29a
parentf3505bc8ce2f49bf1d23e5c39ff7f11645e4fe1d
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