Skip to content

Commit

Permalink
ASoC: fsl: fsl_spdif: signedness bug in fsl_spdif_startup()
Browse files Browse the repository at this point in the history
We need "i" to be signed or it leads to a forever loop in the error
handling.

Fixes: fa3be92 ('ASoC: fsl: fsl_spdif: Check for clk_prepare_enable() error')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Dan Carpenter authored and Mark Brown committed Jul 14, 2015
1 parent d770e55 commit 89e0e25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/fsl/fsl_spdif.c
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,8 @@ static int fsl_spdif_startup(struct snd_pcm_substream *substream,
struct fsl_spdif_priv *spdif_priv = snd_soc_dai_get_drvdata(rtd->cpu_dai);
struct platform_device *pdev = spdif_priv->pdev;
struct regmap *regmap = spdif_priv->regmap;
u32 scr, mask, i;
u32 scr, mask;
int i;
int ret;

/* Reset module and interrupts only for first initialization */
Expand Down

0 comments on commit 89e0e25

Please sign in to comment.