]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafce32e0b5c446fa5bd89a7e149eca98ba615b13
treef9080ec4b0c2876f2ba9dd938b627ff9c7fcaf89
parentf65f11372edb6d7f35e537ae92ea111e2b46fa0e
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