net: stmmac: dwmac-intel-plat: remove redundant null check before clk_disable_unprepare()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Wed, 9 Sep 2020 14:09:00 +0000 (22:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Sep 2020 21:17:02 +0000 (14:17 -0700)
commit6b5472d4f1588e3eea0c3270ec53766739ae4c2e
treef9080ec4b0c2876f2ba9dd938b627ff9c7fcaf89
parenta0d48518cdc855ed188be385abb4df1752a4003c
net: stmmac: dwmac-intel-plat: 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/stmicro/stmmac/dwmac-intel-plat.c