]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: ti: davinci-mcasp: Remove unnecessary conditional
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 2 Dec 2021 20:56:12 +0000 (22:56 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 6 Dec 2021 13:49:29 +0000 (13:49 +0000)
commit2637956422df644172c2528648e90cee39e12bb2
tree86fc8e27acc25eb1779e82249719d77ef0cda21f
parentf18f6e2cc060c09e47752e8b203e490c8f0d5074
ASoC: ti: davinci-mcasp: Remove unnecessary conditional

Instead of double validating of_node, return value of
the boolean property directly.

We can't remove ifdeffery, because in OF_GPIO=n cases
it might bring unwanted surprises.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@gmail.com>
Link: https://lore.kernel.org/r/20211202205612.76216-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/ti/davinci-mcasp.c