Commit f9bbc1c8 authored by Yang Li's avatar Yang Li Committed by Paul Kocialkowski
Browse files

drm: Remove unnecessary print function dev_err()



The print function dev_err() is redundant because platform_get_irq()
already prints an error.

Eliminate the follow coccicheck warning:
./drivers/gpu/drm/logicvc/logicvc_drm.c:352:2-9: line 352 is redundant
because platform_get_irq() already prints an error

Reported-by: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarYang Li <yang.lee@linux.alibaba.com>
Acked-by: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Signed-off-by: default avatarPaul Kocialkowski <paul.kocialkowski@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220613012658.85814-1-yang.lee@linux.alibaba.com
parent d54cda74
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -349,7 +349,6 @@ static int logicvc_drm_probe(struct platform_device *pdev)

	irq = platform_get_irq(pdev, 0);
	if (irq < 0) {
		dev_err(dev, "Failed to get IRQ\n");
		ret = -ENODEV;
		goto error_reserved_mem;
	}