]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
net: stmmac: Remove useless test before clk_disable_unprepare
authorYueHaibing <yuehaibing@huawei.com>
Wed, 16 May 2018 10:59:19 +0000 (18:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 18:43:54 +0000 (14:43 -0400)
commit93120eba4890e0fcf1e42059d495a7d852db31ed
treeca6a2ee83b44fbd58b350f3a90da0c2861059098
parent9e6881d3665688d14b2ad4860f4e28af4ee02b63
net: stmmac: Remove useless test before clk_disable_unprepare

clk_disable_unprepare() already checks that the clock pointer is valid.
No need to test it before calling it.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c