OSDN Git Service

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)
commita0d48518cdc855ed188be385abb4df1752a4003c
treeecbfd342658c021c6c003318b63c0bb91f74b154
parent34e435438cbc81109c8a9b541a4581842a5dd352
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