]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: SDCA: Tidy up irq_enable_flags()/sdca_irq_disable()
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Thu, 9 Apr 2026 16:43:27 +0000 (17:43 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 9 Apr 2026 18:39:31 +0000 (19:39 +0100)
commit87ceac0a98e92f4efd031b5b9ab49ab5645d1c7e
treefc32538236c445d6f65e08843c021fe317bbc138
parent7936490e04733ade80d0d445529c0a6de0f95515
ASoC: SDCA: Tidy up irq_enable_flags()/sdca_irq_disable()

In irq_enable_flags() and sdca_irq_disable() there is a NULL
check on the interrupt data pointer, however this is just pulled
from an array so can never be NULL. This was likely left over
from an earlier version that looked up the data in a different
way. Replace the check with checking for the IRQ itself being
non-zero.

Whilst here also drop the sdca_interrupt structure down into
the loop within the function to better match the style of the
rest of the code in this file.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260409164328.3999434-4-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdca/sdca_interrupts.c