mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-07 11:26:38 +07:00
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:
parent
97bf6af1f9
commit
180cf794d4
@ -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++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user