From: Peter Ujfalusi Date: Mon, 26 Sep 2011 07:56:42 +0000 (+0300) Subject: ASoC: omap-mcbsp: Fix compile time warning about ambiguous ‘else’ X-Git-Tag: v3.3-rc1~14^2~667 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=141947e6ceb8f82fe8382b26f093bb379af9af15;p=platform%2Fkernel%2Flinux-exynos.git ASoC: omap-mcbsp: Fix compile time warning about ambiguous ‘else’ Fixes the following compile time warning: omap-mcbsp.c:519: warning: suggest explicit braces to avoid ambiguous ‘else’ Signed-off-by: Peter Ujfalusi Acked-by: Jarkko Nikula Signed-off-by: Mark Brown --- diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index 478d607..1391ea0 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 ||