ASoC: tscs42xx.c: fix boolean test
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Sat, 5 Jan 2019 02:02:44 +0000 (20:02 -0600)
committerMark Brown <broonie@kernel.org>
Mon, 7 Jan 2019 16:53:10 +0000 (16:53 +0000)
Reported by Coccinelle:
sound/soc/codecs/tscs42xx.c:392:5-31: WARNING: Comparison to bool

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tscs42xx.c

index 7396a6e..27b8c6b 100644 (file)
@@ -389,7 +389,7 @@ static int dac_event(struct snd_soc_dapm_widget *w,
 
        mutex_lock(&tscs42xx->coeff_ram_lock);
 
-       if (tscs42xx->coeff_ram_synced == false) {
+       if (!tscs42xx->coeff_ram_synced) {
                ret = write_coeff_ram(component, tscs42xx->coeff_ram, 0x00,
                        COEFF_RAM_COEFF_COUNT);
                if (ret < 0)