]> git.baikalelectronics.ru Git - kernel.git/commit
net: pxa168_eth: remove redundant null check before clk_disable_unprepare()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Wed, 9 Sep 2020 14:06:37 +0000 (22:06 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 21:16:33 +0000 (14:16 -0700)
commitf65f11372edb6d7f35e537ae92ea111e2b46fa0e
treeecbfd342658c021c6c003318b63c0bb91f74b154
parent5d3a8a174a900f94af1b03099e3676b21b25dacb
net: pxa168_eth: remove redundant null check before clk_disable_unprepare()

Because clk_prepare_enable() and clk_disable_unprepare() already checked
NULL clock parameter, so the additional checks are unnecessary, just
remove them.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/pxa168_eth.c