summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>2025-12-31 23:04:18 +0300
committerMark Brown <broonie@kernel.org>2026-01-05 16:25:48 +0300
commit2a3dc1bcc75e357e4e68c92ff9b9e7f6e775c3e7 (patch)
treeddbb36e5230960a57c84b2c5d63724be1fe01a23
parent7786b10688ac0ebeaff655923cbb2c7d34a98995 (diff)
downloadlinux-2a3dc1bcc75e357e4e68c92ff9b9e7f6e775c3e7.tar.xz
ASoC: nau8821: Drop superfluous return statement
Simplify error handling in nau8821_enable_jack_detect() by removing the unnecessary return after logging the request irq message. Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com> Link: https://patch.msgid.link/20251231-nau8821-cleanup-v1-4-6b0b76cbbb64@collabora.com Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/nau8821.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sound/soc/codecs/nau8821.c b/sound/soc/codecs/nau8821.c
index 58d2d5e77c8f..6dffda69f1ff 100644
--- a/sound/soc/codecs/nau8821.c
+++ b/sound/soc/codecs/nau8821.c
@@ -1679,11 +1679,9 @@ int nau8821_enable_jack_detect(struct snd_soc_component *component,
ret = devm_request_threaded_irq(nau8821->dev, nau8821->irq, NULL,
nau8821_interrupt, IRQF_TRIGGER_LOW | IRQF_ONESHOT,
"nau8821", nau8821);
- if (ret) {
+ if (ret)
dev_err(nau8821->dev, "Cannot request irq %d (%d)\n",
nau8821->irq, ret);
- return ret;
- }
return ret;
}