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:
f845b33
)
chelsio: Remove addressof casts to same type
author
Joe Perches
<joe@perches.com>
Mon, 24 Mar 2014 17:45:12 +0000
(10:45 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 26 Mar 2014 19:46:15 +0000
(15:46 -0400)
Using addressof then casting to the original type is pointless,
so remove these unnecessary casts.
Done via coccinelle script:
$ cat typecast.cocci
@@
type T;
T foo;
@@
- (T *)&foo
+ &foo
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
patch
|
blob
|
history
diff --cc
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
Simple merge