ASoC: samsung: i2s: Remove redundant null check before clk_disable_unprepare
Subsystems (3)
PATCH 1/1 ASoC: samsung: i2s: Remove redundant null check before clk_disable_unprepare
Because clk_disable_unprepare() already checked NULL clock parameter, so the additional check is unnecessary, just remove it.
Signed-off-by Xu Wang <[email protected]>
--- sound/soc/samsung/i2s.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/samsung/i2s.c +1 -2
@@ -1212,8 +1212,7 @@ static int i2s_runtime_suspend(struct device *dev) priv->suspend_i2scon =readl (priv->addr +I2SCON ); priv->suspend_i2spsr =readl (priv->addr +I2SPSR ); -if (priv->op_clk) -clk_disable_unprepare (priv->op_clk); +clk_disable_unprepare (priv->op_clk);clk_disable_unprepare (priv->clk);return 0 ;
Signature · 1 line
2.17.1
Quoted 2 lines · Xu Wang
Because
clk_disable_unprepare()already checked NULL clock parameter, so the additional check is unnecessary, just remove it.
You missed other places with it - the resume part.
Best regards,
Krzysztof
Quoted 5 lines
Signed-off-by Xu Wang <[email protected]>--- sound/soc/samsung/i2s.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)