Skip to content

Commit

Permalink
ALSA: intel_hdmi: Remove dev_err() on platform_get_irq() failure
Browse files Browse the repository at this point in the history
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
YueHaibing authored and tiwai committed Oct 25, 2019
1 parent cc8f81c commit 0a671dc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sound/x86/intel_hdmi_audio.c
Original file line number Diff line number Diff line change
Expand Up @@ -1708,10 +1708,8 @@ static int hdmi_lpe_audio_probe(struct platform_device *pdev)

/* get resources */
irq = platform_get_irq(pdev, 0);
if (irq < 0) {
dev_err(&pdev->dev, "Could not get irq resource: %d\n", irq);
if (irq < 0)
return irq;
}

res_mmio = platform_get_resource(pdev, IORESOURCE_MEM, 0);
if (!res_mmio) {
Expand Down

0 comments on commit 0a671dc

Please sign in to comment.