]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb783f5338a2f2a2d9943d23a9984cc45b3f4fcce
tree04fdc9a6791e3b16da333c5c4261aa6524017f36
parent09f38db0f90de2b1fcc1bdfd92d778b6449e6062
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