]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
ALSA: hda: Remove unnecessary print function dev_err()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fri, 12 Dec 2025 06:24:10 +0000 (14:24 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sat, 13 Dec 2025 09:32:48 +0000 (10:32 +0100)
The print function dev_err() is redundant because platform_get_irq()
already prints an error.

./sound/hda/controllers/cix-ipbloq.c:119:2-9: line 119 is redundant because platform_get_irq() already prints an error.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=28045
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Link: https://patch.msgid.link/20251212062410.3706839-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/controllers/cix-ipbloq.c

index 99f9f48e91d4b4cc4b84e9a0fc620610f275982b..c1084a915c1363f1f8f066162bd0586888dc012e 100644 (file)
@@ -115,10 +115,8 @@ static int cix_ipbloq_hda_init(struct cix_ipbloq_hda *hda,
        bus->addr = res->start;
 
        irq_id = platform_get_irq(pdev, 0);
-       if (irq_id < 0) {
-               dev_err(hda->dev, "failed to get the irq, err = %d\n", irq_id);
+       if (irq_id < 0)
                return irq_id;
-       }
 
        err = devm_request_irq(hda->dev, irq_id, azx_interrupt,
                               0, KBUILD_MODNAME, chip);