]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: Intel: hda-stream: remove always true condition
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 12 Aug 2021 23:19:38 +0000 (18:19 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 13 Aug 2021 12:16:15 +0000 (13:16 +0100)
commit2f638023670988e6503462bd0c42a35bc0ad785a
treed8479ccb71faa2a2a583e2ce2e17ba9f49a88df6
parent3942b60f0a5c9c1efde84ef0bdcb4359b3cb30fe
ASoC: SOF: Intel: hda-stream: remove always true condition

We test if (!stream) and return and later on re-test for stream.
The second test is always true.

This was detected by cppcheck but only after additional code changes.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20210812231940.172547-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/intel/hda-stream.c