]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: ft1000: Drop unneeded cast on netdev_priv
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sun, 29 Mar 2015 12:54:14 +0000 (14:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 12:00:14 +0000 (14:00 +0200)
commita4820acfaf179982a86783ee0c0d5d39a9c5ab20
treea307e23db0554bf7325fe29756b2e1664454abb2
parent528a5691ad2f687d8f59ce1f3d058507a00927b6
staging: ft1000: 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/ft1000/ft1000-pcmcia/ft1000_dnld.c