From: Markus Elfring Date: Sat, 3 Jan 2015 18:25:55 +0000 (+0100) Subject: ASoC: fsi: Deletion of unnecessary checks before the function call "clk_enable" X-Git-Tag: v5.15~16371^2~13^2~7^4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=180cf794d4f5e0e82a4df30b8bacd9b472f80f44;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Mark Brown --- diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 8869971..d49f25f 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c @@ -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++; }