Skip to contentSkip to conversation

ALSA: hda: Remove unnecessary print function dev_err()

PATCH Applied Jiapeng Chong 2 participants 2 messages Dec 12, 2025 – Dec 13, 2025 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 sound/hda/controllers/cix-ipbloq.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
sound/hda/controllers/cix-ipbloq.c +1 -3
index 99f9f48e91d4..c1084a915c13 100644
@@ -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);
Signature · 1 line
2.43.7