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:
5fba610
)
powerpc/pci: Drop unnecessary null test
author
Julia Lawall
<julia@diku.dk>
Tue, 3 Aug 2010 11:35:17 +0000
(11:35 +0000)
committer
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Tue, 24 Aug 2010 05:26:28 +0000
(15:26 +1000)
list_for_each_entry binds its first argument to a non-null value, and thus
any null test on the value of that argument is superfluous.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
iterator I;
expression x,E,E1,E2;
statement S,S1,S2;
@@
I(x,...) { <...
- if (x != NULL || ...)
S
...> }
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/pci_of_scan.c
patch
|
blob
|
history
diff --cc
arch/powerpc/kernel/pci_of_scan.c
Simple merge