]> 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)
commit2e6bb15f9163270e0f3590f660b4d596db7511f9
treeecbfd342658c021c6c003318b63c0bb91f74b154
parente9b89b4d106905819ade7531f9cac94976868e4c
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