Commit 7d57cd89 authored by Markus Elfring's avatar Markus Elfring Committed by Mark Brown

spi/txx9: Deletion of an unnecessary check before the function call "clk_disable"

The clk_disable() function tests whether its argument is NULL and then
returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent f114040e
...@@ -402,8 +402,7 @@ static int txx9spi_probe(struct platform_device *dev) ...@@ -402,8 +402,7 @@ static int txx9spi_probe(struct platform_device *dev)
exit: exit:
if (c->workqueue) if (c->workqueue)
destroy_workqueue(c->workqueue); destroy_workqueue(c->workqueue);
if (c->clk) clk_disable(c->clk);
clk_disable(c->clk);
spi_master_put(master); spi_master_put(master);
return ret; return ret;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment