* [PATCH] ASoC: omap-mcbsp: Fix compile time warning about ambiguous ‘else’
@ 2011-09-26 7:56 Peter Ujfalusi
2011-09-26 8:08 ` Jarkko Nikula
2011-09-26 8:57 ` Mark Brown
0 siblings, 2 replies; 3+ messages in thread
From: Peter Ujfalusi @ 2011-09-26 7:56 UTC (permalink / raw)
To: Mark Brown, Liam Girdwood; +Cc: alsa-devel, Jarkko Nikula
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>
---
sound/soc/omap/omap-mcbsp.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
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 ||
--
1.7.6.1
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: omap-mcbsp: Fix compile time warning about ambiguous ‘else’
2011-09-26 7:56 [PATCH] ASoC: omap-mcbsp: Fix compile time warning about ambiguous ‘else’ Peter Ujfalusi
@ 2011-09-26 8:08 ` Jarkko Nikula
2011-09-26 8:57 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Jarkko Nikula @ 2011-09-26 8:08 UTC (permalink / raw)
To: Peter Ujfalusi; +Cc: alsa-devel, Mark Brown, Liam Girdwood
On 09/26/2011 10:56 AM, Peter Ujfalusi wrote:
> 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>
> ---
> sound/soc/omap/omap-mcbsp.c | 3 ++-
> 1 files changed, 2 insertions(+), 1 deletions(-)
>
Acked-by: Jarkko Nikula <jarkko.nikula@bitmer.com>
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] ASoC: omap-mcbsp: Fix compile time warning about ambiguous ‘else’
2011-09-26 7:56 [PATCH] ASoC: omap-mcbsp: Fix compile time warning about ambiguous ‘else’ Peter Ujfalusi
2011-09-26 8:08 ` Jarkko Nikula
@ 2011-09-26 8:57 ` Mark Brown
1 sibling, 0 replies; 3+ messages in thread
From: Mark Brown @ 2011-09-26 8:57 UTC (permalink / raw)
To: Peter Ujfalusi; +Cc: alsa-devel, Liam Girdwood, Jarkko Nikula
On Mon, Sep 26, 2011 at 10:56:42AM +0300, Peter Ujfalusi wrote:
> Fixes the following compile time warning:
> omap-mcbsp.c:519: warning: suggest explicit braces to avoid ambiguous ‘else’
Applied, thanks.
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-09-26 8:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-26 7:56 [PATCH] ASoC: omap-mcbsp: Fix compile time warning about ambiguous ‘else’ Peter Ujfalusi
2011-09-26 8:08 ` Jarkko Nikula
2011-09-26 8:57 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).