]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: remove redundant null pointer check before put_device
authorzhong jiang <zhongjiang@huawei.com>
Sun, 16 Sep 2018 13:45:02 +0000 (21:45 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 17 Sep 2018 15:20:11 +0000 (08:20 -0700)
commit39c45d5e184da183a2f5724ac8c4d57bc6ade111
treee0e767319c6f70772521398dac38a0aa3aaf6464
parentc58ad88031ba9c280dace76a6ea5c2e9694d484c
net: dsa: remove redundant null pointer check before put_device

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

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dsa/legacy.c