diff options
author | Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> | 2018-12-16 16:49:07 -0600 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-01-03 16:34:11 +0000 |
commit | e295450dd86d974861e1e9e302d67b0a23457ea8 (patch) | |
tree | e5d3d2b16448ec42ba8b124f43f4b2619801c576 | |
parent | 060d35be2dfa9202d37f967fd20f133c530505d2 (diff) | |
download | lwn-e295450dd86d974861e1e9e302d67b0a23457ea8.tar.gz lwn-e295450dd86d974861e1e9e302d67b0a23457ea8.zip |
ASoC: Intel: Baytrail: simplify boolean test
Detected with Coccinelle
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/intel/baytrail/sst-baytrail-pcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/baytrail/sst-baytrail-pcm.c b/sound/soc/intel/baytrail/sst-baytrail-pcm.c index aabb35bf6b96..498fb5346f1a 100644 --- a/sound/soc/intel/baytrail/sst-baytrail-pcm.c +++ b/sound/soc/intel/baytrail/sst-baytrail-pcm.c @@ -188,7 +188,7 @@ static int sst_byt_pcm_trigger(struct snd_pcm_substream *substream, int cmd) sst_byt_stream_start(byt, pcm_data->stream, 0); break; case SNDRV_PCM_TRIGGER_RESUME: - if (pdata->restore_stream == true) + if (pdata->restore_stream) schedule_work(&pcm_data->work); else sst_byt_stream_resume(byt, pcm_data->stream); |