From: Julia Lawall Date: Tue, 3 Aug 2010 09:50:32 +0000 (+0000) Subject: powerpc/powermac: Drop unnecessary of_node_put X-Git-Tag: v2.6.36-rc3~37^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d1efa2a7551a10006055e0ac2870b4b6077df8ef;p=pandora-kernel.git powerpc/powermac: Drop unnecessary of_node_put for_each_node_by_name only exits when its first argument is NULL, and a subsequent call to of_node_put on that argument is unnecessary. The semantic patch that makes this change is as follows: (http://coccinelle.lip6.fr/) // @@ iterator name for_each_node_by_name; expression np,E; identifier l; @@ for_each_node_by_name(np,...) { ... when != break; when != goto l; } ... when != np = E - of_node_put(np); // Signed-off-by: Julia Lawall Reviewed-by: Grant Likely Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed