aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeed Aguilar <leed.aguilar@ti.com>2011-11-02 12:09:28 -0400
committerZiyann <jaraidaniel@gmail.com>2014-10-01 12:56:13 +0200
commit62f928ef00b95d4540f0f91259b6869f225c97ea (patch)
tree5a56d1f541fa12e28f2e4b07b753e8e080e457c6
parent04c8471b781a0e87a2b40b8c79461e648681c8e3 (diff)
downloadkernel_samsung_tuna-62f928ef00b95d4540f0f91259b6869f225c97ea.zip
kernel_samsung_tuna-62f928ef00b95d4540f0f91259b6869f225c97ea.tar.gz
kernel_samsung_tuna-62f928ef00b95d4540f0f91259b6869f225c97ea.tar.bz2
omap: omap-mcbsp: fix compilation warnings
In function 'omap_mcbsp_dai_set_dai_sysclk': warning: suggest explicit braces to avoid ambiguous 'else' Change-Id: Ic273b811371ae12ae76097cc709327443690d39b Signed-off-by: Leed Aguilar <leed.aguilar@ti.com>
-rw-r--r--sound/soc/omap/omap-mcbsp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c
index 8b6a510..b53149d 100644
--- a/sound/soc/omap/omap-mcbsp.c
+++ b/sound/soc/omap/omap-mcbsp.c
@@ -516,11 +516,12 @@ static int omap_mcbsp_dai_set_dai_sysclk(struct snd_soc_dai *cpu_dai,
struct omap_mcbsp_reg_cfg *regs = &mcbsp_data->regs;
int err = 0;
- if (mcbsp_data->active)
+ if (mcbsp_data->active) {
if (freq == mcbsp_data->in_freq)
return 0;
else
return -EBUSY;
+ }
/* The McBSP signal muxing functions are only available on McBSP1 */
if (clk_id == OMAP_MCBSP_CLKR_SRC_CLKR ||