]> git.baikalelectronics.ru Git - kernel.git/commit
drivers: net: phy: xgene: Fix 'remove' function
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 11 Sep 2016 19:43:34 +0000 (21:43 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Sep 2016 16:04:11 +0000 (12:04 -0400)
commitf50942660b3a9882ccf31d2c1a82ac4d97c58c4a
tree2d49e4b29f9deb2f03e6ed0d9de9244a915f2d05
parent7151c51b52933cff743dc5a2d426b7cf46b9352f
drivers: net: phy: xgene: Fix 'remove' function

If 'IS_ERR(pdata->clk)' is true, then 'clk_disable_unprepare(pdata->clk)'
will do nothing.

It is likely that 'if (!IS_ERR(pdata->clk))' was expected here.
In fact, the test can even be removed because 'clk_disable_unprepare'
already handles such cases.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mdio-xgene.c