net: ethoc: Remove useless test before clk_disable_unprepare
authorYueHaibing <yuehaibing@huawei.com>
Wed, 16 May 2018 11:18:22 +0000 (19:18 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 May 2018 18:44:29 +0000 (14:44 -0400)
commit76e597eb15297d402685ee1442405d3eea70136b
tree0212cb0d31c9e488fcdcbdd5384562848c43a426
parent93120eba4890e0fcf1e42059d495a7d852db31ed
net: ethoc: 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>
Reviewed-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ethoc.c