Home
last modified time | relevance | path

Searched hist:"5 fba610ec94a1290fc299ea051e47d55da9059ba" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/powerpc/platforms/powermac/
H A Dfeature.cdiff 5fba610ec94a1290fc299ea051e47d55da9059ba Tue Aug 03 06:33:43 CDT 2010 Julia Lawall <julia@diku.dk> powerpc/powermac: Drop unnecessary null test

for_each_node_by_name 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;
@@

I(x,...) { <...
(
- (x != NULL) &&
E
...> }
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>