mirror of https://gitee.com/openkylin/linux.git
ASoC: Intel: Skylake: simplify boolean tests
Detected with Coccinelle skl-messages.c:419:5-32: WARNING: Comparison to bool skl-pcm.c:1426:6-33: WARNING: Comparison to bool Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
431b67c27c
commit
d8747d30aa
|
@ -416,7 +416,7 @@ int skl_resume_dsp(struct skl *skl)
|
|||
snd_hdac_ext_bus_ppcap_int_enable(bus, true);
|
||||
|
||||
/* check if DSP 1st boot is done */
|
||||
if (skl->skl_sst->is_first_boot == true)
|
||||
if (skl->skl_sst->is_first_boot)
|
||||
return 0;
|
||||
|
||||
/*
|
||||
|
|
|
@ -1423,7 +1423,7 @@ static int skl_platform_soc_probe(struct snd_soc_component *component)
|
|||
if (!ops)
|
||||
return -EIO;
|
||||
|
||||
if (skl->skl_sst->is_first_boot == false) {
|
||||
if (!skl->skl_sst->is_first_boot) {
|
||||
dev_err(component->dev, "DSP reports first boot done!!!\n");
|
||||
return -EIO;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue