]> git.baikalelectronics.ru Git - kernel.git/commit
dwc_eth_qos: Delete an unnecessary check before the function call "of_node_put"
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 7 Nov 2015 15:30:34 +0000 (16:30 +0100)
committerDavid S. Miller <davem@davemloft.net>
Sat, 7 Nov 2015 18:17:32 +0000 (13:17 -0500)
commit71d43ac46e822765bce90c94b00d657f68828923
treee36c618911cd85187001e3812654646feb964fc5
parent9483da60c3fcbf61cff977f2f45493cf716ae0b5
dwc_eth_qos: Delete an unnecessary check before the function call "of_node_put"

The of_node_put() function tests whether its argument is NULL
and then returns immediately.
Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/synopsys/dwc_eth_qos.c