net: ethernet: remove redundant null pointer check before of_node_put
authorzhong jiang <zhongjiang@huawei.com>
Sun, 16 Sep 2018 13:13:42 +0000 (21:13 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2018 15:21:45 +0000 (08:21 -0700)
commita4ebec033e1cff2690806c1721189c51b1cd0ae5
tree04fdc9a6791e3b16da333c5c4261aa6524017f36
parentb458925ed5797a20f22cdf005625e25106cf7124
net: ethernet: remove redundant null pointer check before of_node_put

of_node_put has taken the null pointer check into account. So it is
safe to remove the duplicated check before of_node_put.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fec_main.c