Skip to content

Commit cdc9966

Browse files
wb-zjp846396tiwai
authored andcommitted
ALSA: hda: Remove unnecessary print function dev_err()
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>
1 parent fd32476 commit cdc9966

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

sound/hda/controllers/cix-ipbloq.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,8 @@ static int cix_ipbloq_hda_init(struct cix_ipbloq_hda *hda,
115115
bus->addr = res->start;
116116

117117
irq_id = platform_get_irq(pdev, 0);
118-
if (irq_id < 0) {
119-
dev_err(hda->dev, "failed to get the irq, err = %d\n", irq_id);
118+
if (irq_id < 0)
120119
return irq_id;
121-
}
122120

123121
err = devm_request_irq(hda->dev, irq_id, azx_interrupt,
124122
0, KBUILD_MODNAME, chip);

0 commit comments

Comments
 (0)