net: ethernet: fec: remove redundant null check before clk_disable_unprepare()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Mon, 7 Sep 2020 12:49:44 +0000 (20:49 +0800)
committerJakub Kicinski <kuba@kernel.org>
Mon, 7 Sep 2020 20:34:42 +0000 (13:34 -0700)
commit05891200706117895b7faac7e53b14118b6a8114
tree5cb8f028764a0741d8a2a302fe636f565929e09e
parent1c35cc9cf6a0e2c4ade22385a89d07d1d9006620
net: ethernet: fec: 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>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/fec_main.c