Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: intel_hdmi: Remove dev_err() on platform_get_irq() failure

platform_get_irq() will call dev_err() itself on failure,
so there is no need for the driver to also do this.
This is detected by coccinelle.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20191025093905.14888-1-yuehaibing@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

YueHaibing and committed by
Takashi Iwai
0a671dc5 cc8f81c7

+1 -3
+1 -3
sound/x86/intel_hdmi_audio.c
··· 1708 1708 1709 1709 /* get resources */ 1710 1710 irq = platform_get_irq(pdev, 0); 1711 - if (irq < 0) { 1712 - dev_err(&pdev->dev, "Could not get irq resource: %d\n", irq); 1711 + if (irq < 0) 1713 1712 return irq; 1714 - } 1715 1713 1716 1714 res_mmio = platform_get_resource(pdev, IORESOURCE_MEM, 0); 1717 1715 if (!res_mmio) {