From patchwork Mon Jun 13 01:26:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yang Li X-Patchwork-Id: 12878911 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2980DC433EF for ; Mon, 13 Jun 2022 01:32:11 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 046D510E40E; Mon, 13 Jun 2022 01:32:10 +0000 (UTC) X-Greylist: delayed 303 seconds by postgrey-1.36 at gabe; Mon, 13 Jun 2022 01:32:08 UTC Received: from out30-54.freemail.mail.aliyun.com (out30-54.freemail.mail.aliyun.com [115.124.30.54]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3F55010E40E for ; Mon, 13 Jun 2022 01:32:07 +0000 (UTC) X-Alimail-AntiSpam: AC=PASS; BC=-1|-1; BR=01201311R881e4; CH=green; DM=||false|; DS=||; FP=0|-1|-1|-1|0|-1|-1|-1; HT=e01e04400; MF=yang.lee@linux.alibaba.com; NM=1; PH=DS; RN=7; SR=0; TI=SMTPD_---0VG83Uth_1655083619; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VG83Uth_1655083619) by smtp.aliyun-inc.com; Mon, 13 Jun 2022 09:27:00 +0800 From: Yang Li To: airlied@linux.ie Subject: [PATCH -next] drm: Remove unnecessary print function dev_err() Date: Mon, 13 Jun 2022 09:26:58 +0800 Message-Id: <20220613012658.85814-1-yang.lee@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Abaci Robot , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, paul.kocialkowski@bootlin.com, Yang Li Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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: Abaci Robot Signed-off-by: Yang Li Acked-by: Paul Kocialkowski --- drivers/gpu/drm/logicvc/logicvc_drm.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/logicvc/logicvc_drm.c b/drivers/gpu/drm/logicvc/logicvc_drm.c index df1805cf0f95..437b3011ae1e 100644 --- a/drivers/gpu/drm/logicvc/logicvc_drm.c +++ b/drivers/gpu/drm/logicvc/logicvc_drm.c @@ -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; }