ASoC: fsl: fsl_dma: Use true/false for boolean init
authorFabio Estevam <fabio.estevam@freescale.com>
Sat, 9 May 2015 15:45:52 +0000 (12:45 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 11 May 2015 15:13:36 +0000 (16:13 +0100)
Bool initializations should use true and false.  Bool tests don't need
comparisons.  Based on contributions from Joe Perches, Rusty Russell
and Bruce W Allan.

The semantic patch that makes this change is available
in scripts/coccinelle/misc/boolinit.cocci.

More information about semantic patching is available at
http://coccinelle.lip6.fr/

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Timur Tabi <timur@tabi.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_dma.c

index 93d7e56c60660845cc454bca70ed531bfaa9156d..ccadefceeff2c00e1e6e9ed2f74225d00a9a3cde 100644 (file)
@@ -445,7 +445,7 @@ static int fsl_dma_open(struct snd_pcm_substream *substream)
                return ret;
        }
 
-       dma->assigned = 1;
+       dma->assigned = true;
 
        snd_pcm_set_runtime_buffer(substream, &substream->dma_buffer);
        snd_soc_set_runtime_hwparams(substream, &fsl_dma_hardware);
@@ -814,7 +814,7 @@ static int fsl_dma_close(struct snd_pcm_substream *substream)
                substream->runtime->private_data = NULL;
        }
 
-       dma->assigned = 0;
+       dma->assigned = false;
 
        return 0;
 }