summaryrefslogtreecommitdiff
path: root/sound/soc
diff options
context:
space:
mode:
authorCosmin-Gabriel Samoila <cosmin.samoila@nxp.com>2018-11-14 15:04:31 +0200
committerCosmin-Gabriel Samoila <cosmin.samoila@nxp.com>2018-11-14 15:46:00 +0200
commit24853d2c4075f45b8e942951a01037d27d892b6b (patch)
treea72d781c5f96c29dc5ee7596e4829d35a9979461 /sound/soc
parentecd01c473d3a54987b3ea554088eab42901af6c9 (diff)
MLKU-24-4 sound:asoc: fix checkpatch braces error
Braces {} are not necessary for single statement blocks. Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com> Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/fsl/fsl_micfil.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c
index 4f2e9aa68bb4..e9c08457ef22 100644
--- a/sound/soc/fsl/fsl_micfil.c
+++ b/sound/soc/fsl/fsl_micfil.c
@@ -1400,9 +1400,8 @@ static int fsl_micfil_set_mclk_rate(struct fsl_micfil *micfil, int clk_id,
* to any known frequency ???
*/
clk_rate = round_up(clk_rate, 10);
- if (do_div(clk_rate, ratio) == 0) {
+ if (do_div(clk_rate, ratio) == 0)
npll = micfil->clk_src[i];
- }
}
} else {
/* clock id is offseted by 1 since ID=0 means
@@ -2385,14 +2384,14 @@ static int __maybe_unused fsl_micfil_runtime_resume(struct device *dev)
/* enable mclk only if the hwvad is not enabled
* When hwvad is enabled, clock won't be disabled
* in suspend since hwvad and recording share the
- * same clock*/
+ * same clock
+ */
if (state == MICFIL_HWVAD_ON)
return 0;
ret = clk_prepare_enable(micfil->mclk);
- if (ret < 0) {
+ if (ret < 0)
return ret;
- }
regcache_cache_only(micfil->regmap, false);
regcache_mark_dirty(micfil->regmap);