Re: [PATCH] arch/powerpc: Drop unnecessary of_node_put

2010-08-04 Thread Grant Likely
On Tue, Aug 3, 2010 at 1:50 PM, Julia Lawall wrote: > From: Julia Lawall > > 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.

[PATCH] arch/powerpc: Drop unnecessary of_node_put

2010-08-03 Thread Julia Lawall
From: Julia Lawall 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