net: dsa: remove redundant null pointer check before of_node_put
authorzhong jiang <zhongjiang@huawei.com>
Sun, 16 Sep 2018 13:22:31 +0000 (21:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2018 15:20:11 +0000 (08:20 -0700)
commit1ddc5d3e5f1cf9ac8a6aad00b95a7a022e634ef4
tree3a7e477ff2f29217485f352a226afe96eb45d316
parent764ea3714a85bfc0e3e470cee2166b6ef911b9b9
net: dsa: 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>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c