Re: [PATCH 4/14] powerpc/pseries: delete unneeded test before of_node_put

2014-08-10 Thread Benjamin Herrenschmidt
On Fri, 2014-08-08 at 12:07 +0200, Julia Lawall wrote: > From: Julia Lawall > > Of_node_put supports NULL as its argument, so the initial test is not > necessary. > > Suggested by Uwe Kleine-König. > > The semantic patch that fixes this problem is as follows: > (http://coccinelle.lip6.fr/) > >

[PATCH 4/14] powerpc/pseries: delete unneeded test before of_node_put

2014-08-08 Thread Julia Lawall
From: Julia Lawall Of_node_put supports NULL as its argument, so the initial test is not necessary. Suggested by Uwe Kleine-König. The semantic patch that fixes this problem is as follows: (http://coccinelle.lip6.fr/) // @@ expression e; @@ -if (e) of_node_put(e); // Signed-off-by: Juli