ASoC: omap-mcbsp: Fix compile time warning about ambiguous ‘else’
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Mon, 26 Sep 2011 07:56:42 +0000 (10:56 +0300)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 26 Sep 2011 08:57:35 +0000 (09:57 +0100)
Fixes the following compile time warning:
omap-mcbsp.c:519: warning: suggest explicit braces to avoid ambiguous ‘else’

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/omap/omap-mcbsp.c

index 478d60778453632905dd7f8e3870dc289e9ca577..1391ea0dd3cedb2850e1ec0bc80bdfd0118bcdc2 100644 (file)
@@ -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 ||