git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f0e3811
)
n_gsm: Drop unneeded cast on netdev_priv
author
Julia Lawall
<Julia.Lawall@lip6.fr>
Sun, 29 Mar 2015 12:54:13 +0000
(14:54 +0200)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 10 Apr 2015 12:43:48 +0000
(14:43 +0200)
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/tty/n_gsm.c
patch
|
blob
|
history
diff --cc
drivers/tty/n_gsm.c
Simple merge