]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: dapm: Drop always true checks
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 26 Jul 2015 17:04:58 +0000 (19:04 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 29 Jul 2015 13:01:37 +0000 (14:01 +0100)
commite74e6ca54d65bb7bf7ee72704ad4e799aaff83e7
tree52452f745fd199aeb4efc3fb983c1caed92324d1
parent373f536cfeb27093544df7f740d198feda9eb1ad
ASoC: dapm: Drop always true checks

list_first_entry() always returns non NULL and since the code previously
checked that list is not empty it will also be a valid pointer. Furthermore
a path has always a sink or a source widget. So both checks are redundant
and can be removed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-dapm.c