staging: rtl8712: Drop unneeded cast on netdev_priv
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 29 Mar 2015 12:54:12 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 13:15:40 +0000 (15:15 +0200)
commit8f47c28b5a0346728259291d9e4a1de90a5d3624
tree4a457291ea39786c756ce1590f8676f0253b4147
parent86d7b29e12b3bfba9b46761448476c878cf6e8b1
staging: rtl8712: Drop unneeded cast on netdev_priv

The result of netdev_priv is already implicitly cast to the type of the
left side of the assignment.

The semantic patch that fixes this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
type T;
T *x;
@@

x =
- (T *)
  netdev_priv(...)
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/os_intfs.c
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
drivers/staging/rtl8712/xmit_linux.c