projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc8f81c
)
ALSA: intel_hdmi: Remove dev_err() on platform_get_irq() failure
author
YueHaibing
<yuehaibing@huawei.com>
Fri, 25 Oct 2019 09:39:05 +0000
(17:39 +0800)
committer
Takashi Iwai
<tiwai@suse.de>
Fri, 25 Oct 2019 12:43:23 +0000
(14:43 +0200)
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>
sound/x86/intel_hdmi_audio.c
patch
|
blob
|
history
diff --git
a/sound/x86/intel_hdmi_audio.c
b/sound/x86/intel_hdmi_audio.c
index 5fd4e32247a6d6967591ce058eb86acfb53167ab..cd389d21219a769cc1914848c3d6422c10de8da2 100644
(file)
--- a/
sound/x86/intel_hdmi_audio.c
+++ b/
sound/x86/intel_hdmi_audio.c
@@
-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) {