]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: nau8821: Drop superfluous return statement
authorCristian Ciocaltea <cristian.ciocaltea@collabora.com>
Wed, 31 Dec 2025 20:04:18 +0000 (22:04 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 5 Jan 2026 13:25:48 +0000 (13:25 +0000)
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>
sound/soc/codecs/nau8821.c

index 58d2d5e77c8f4419a6caa75576a1a425565fd958..6dffda69f1ff813fba90490607876ee68cc163f0 100644 (file)
@@ -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;
 }