From: Julia Lawall <hidden> Date: 2014-08-08 10:12:43
From: Julia Lawall <redacted>
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/)
// <smpl>
@@
expression e;
@@
-if (e)
of_node_put(e);
// </smpl>
Signed-off-by: Julia Lawall <redacted>
---
drivers/net/ethernet/xilinx/ll_temac_main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
From: Michal Simek <hidden> Date: 2014-08-08 10:45:31
On 08/08/2014 12:07 PM, Julia Lawall wrote:
quoted hunk
From: Julia Lawall <redacted>
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/)
// <smpl>
@@
expression e;
@@
-if (e)
of_node_put(e);
// </smpl>
Signed-off-by: Julia Lawall <redacted>
---
drivers/net/ethernet/xilinx/ll_temac_main.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
From: David Miller <davem@davemloft.net> Date: 2014-08-08 17:29:01
From: Julia Lawall <redacted>
Date: Fri, 8 Aug 2014 12:07:53 +0200
From: Julia Lawall <redacted>
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/)