Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp58980iog; Sun, 12 Jun 2022 18:51:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxv6WLDDjr5+G5SOIsFDsdURaB2zUcroikT7yE/XaxMBikHqVA2zsxsjXlMXDlzN8QIKFyl X-Received: by 2002:a17:907:a407:b0:704:34ac:835c with SMTP id sg7-20020a170907a40700b0070434ac835cmr51185619ejc.663.1655085085958; Sun, 12 Jun 2022 18:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655085085; cv=none; d=google.com; s=arc-20160816; b=dJEH58XRbo8my2D9kanBLKFzFArYF3vXinwi4QJnqaCVhoW0spANMBfPHpIJky/IKc vs+hVmeUw7cCBwSzZ16A5lBtpHiqUQ9j37/rmPIaHIaj+8C1R2KAe6cnbpW8afL+epec sIX5eDr0SJ+NpEC6fiVPT2VGhzoABjEHB9yi8G3g6NALKQOPS27bmfUQQcVRupS4PA+K REmMLZmabo7aTZwU0KIJNMKFTtfQ1mPWynvZ6vc8vqkEsM6n1kgLyP4By/yRVelT/+mY jqcl+JYTNtu1CstqFc+KT0VUCWMiA3qbkCBnO6ZTgp8u3FUjq7dH1Dk3xm1DqTN2eLCO sUJg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=THF2cJK3wRmZucNRmH1SRocKQf2DCAE4OWgEAbPmXcY=; b=QADftyqdSFRzQmK1fUnKAOZQFpy7rHlyyWbe7eJD/PJfQ8jqXASht47N4rB8ARqV6U TFBdSmIWhR4BLLu1t3plAC/4Gpd/3IkCInsvCnh9rkFXOY4i4Jrc1ROt2Sk9In3Adrpl Bb2suY0U9u7gpQHxJohTOZXTh6ucVHIOGUrWJBmvlgfS5BT63hnJBwnhjBwkjgXdL8g7 XO5veRaEPo2QqQAdPmGV7djMqcf3vSYzYuAW7e0xT27HdASXwiBgRYB2BpbLQzzjc1g/ KfH+9tGLs42XXjPzhb/zgRtKBMeooIpS1EgMldziT9ac2rAI8noXRcW6Y60qDVfRHqOB rRIg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cq4-20020a056402220400b004241b5068cbsi5993233edb.220.2022.06.12.18.51.01; Sun, 12 Jun 2022 18:51:25 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231962AbiFMB1G (ORCPT + 99 others); Sun, 12 Jun 2022 21:27:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39500 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230500AbiFMB1E (ORCPT ); Sun, 12 Jun 2022 21:27:04 -0400 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D4D633370 for ; Sun, 12 Jun 2022 18:27:02 -0700 (PDT) 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 Cc: daniel@ffwll.ch, paul.kocialkowski@bootlin.com, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot 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 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; } -- 2.20.1.7.g153144c