ASoC: fsi: Deletion of unnecessary checks before the function call "clk_enable"

The clk_enable() 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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Markus Elfring 2015-01-03 19:25:55 +01:00 committed by Mark Brown
parent 97bf6af1f9
commit 180cf794d4

View File

@ -820,12 +820,9 @@ static int fsi_clk_enable(struct device *dev,
return ret;
}
if (clock->xck)
clk_enable(clock->xck);
if (clock->ick)
clk_enable(clock->ick);
if (clock->div)
clk_enable(clock->div);
clk_enable(clock->xck);
clk_enable(clock->ick);
clk_enable(clock->div);
clock->count++;
}