Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1095797pxm; Wed, 23 Feb 2022 18:02:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwm1UevIrz3udxOuOOoYk512uq3mybdu8uwZdJg05p9d0nkJSVBooUOLaNVI+6cenDKdT1y X-Received: by 2002:aa7:999a:0:b0:4cf:3290:ebb8 with SMTP id k26-20020aa7999a000000b004cf3290ebb8mr599956pfh.19.1645668128929; Wed, 23 Feb 2022 18:02:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645668128; cv=none; d=google.com; s=arc-20160816; b=SHCpgSOQtX4cUAQLN0F6QWzZ2nOgsmB5x1dr+LIofgVFL8oTGARZId3TanrWxNnbue LY4pVmdq7A61aPgTBrkrVNMEgLf5lmhF3mXXUtXxKM8SagtZnys8Di3aQwL+Ep0ANgLZ Hmp0mrZ9TLAhiKcjQQUEORV5opVT9P/m4SnJCTEjRltPHyNqclQFBdpBt88r1yXN2TyJ 9RA9MfIy69vWO6BFQDNqYYNc4RyGeia2gt5N9WSHkXb0x/A5pcew81qS1DBRGmglxap2 5ebxsAqp/pe/zZQTKU1Qu3rggifQQToPhjIkw14LqdPkCHqllsu+cc68Nyum2OUyCf8c PvsQ== 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=zgCoVXMSldjjcvFaJx17tJufC0d4X2TrDkpMuhYftc8=; b=tdQAFWrk6Lm4Hu8GmGtB57cWFoLDELZ8gz31m2Zl9C58nfgoa37CweoIRKsE6fdNFh /fIxu6MtmWXStR3PxRGiPIUIm9AnoRdBtiHLhdLyrgOLnXJBggBvGfBjJrO85K++VmNk P2Wxo1IepdMol7R36A/sFiYDfwWra0rBLcA2vINYgwVtjLdmyRZjp1lSxXAenoVYMwnI NDR0cbeeU5e8P6F0u3i/zNwgBRxPG3jLESco/9U5X7R39+EifOYbwdit5GByuDr5XsJp ONdgvkXdPi9tzlKPD4FN/XSJBgEveofPzLfIg5HTVcgxFpeQqgTV9bk3RNlMwc5s7kyY MF8Q== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id 140si1186147pga.497.2022.02.23.18.02.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 18:02:08 -0800 (PST) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 514B021EBBF; Wed, 23 Feb 2022 17:30:32 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229501AbiBXBa5 (ORCPT + 99 others); Wed, 23 Feb 2022 20:30:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52718 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229500AbiBXBaz (ORCPT ); Wed, 23 Feb 2022 20:30:55 -0500 Received: from out30-45.freemail.mail.aliyun.com (out30-45.freemail.mail.aliyun.com [115.124.30.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2971313CDE for ; Wed, 23 Feb 2022 17:30:21 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04426;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=11;SR=0;TI=SMTPD_---0V5LiiSH_1645665799; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0V5LiiSH_1645665799) by smtp.aliyun-inc.com(127.0.0.1); Thu, 24 Feb 2022 09:23:20 +0800 From: Yang Li To: matthias.bgg@gmail.com Cc: airlied@linux.ie, daniel@ffwll.ch, p.zabel@pengutronix.de, chunkuang.hu@kernel.org, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] drm: mediatek: mtk_dsi: Remove unnecessary print function dev_err() Date: Thu, 24 Feb 2022 09:23:18 +0800 Message-Id: <20220224012318.84935-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=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=no 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/mediatek/mtk_dsi.c:1092:2-9: line 1092 is redundant because platform_get_irq() already prints an error Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/gpu/drm/mediatek/mtk_dsi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/mediatek/mtk_dsi.c b/drivers/gpu/drm/mediatek/mtk_dsi.c index bced4c7d668e..704252ee1198 100644 --- a/drivers/gpu/drm/mediatek/mtk_dsi.c +++ b/drivers/gpu/drm/mediatek/mtk_dsi.c @@ -1089,7 +1089,6 @@ static int mtk_dsi_probe(struct platform_device *pdev) irq_num = platform_get_irq(pdev, 0); if (irq_num < 0) { - dev_err(&pdev->dev, "failed to get dsi irq_num: %d\n", irq_num); ret = irq_num; goto err_unregister_host; } -- 2.20.1.7.g153144c