Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp538869pxb; Fri, 22 Apr 2022 06:27:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwssnDf8c04YceRm74Gta9P281rA2D09kQKXcrhYkQgwowelRT0yhCSx1eZliVfVPmEopuq X-Received: by 2002:a05:6402:3584:b0:423:e4d0:34f with SMTP id y4-20020a056402358400b00423e4d0034fmr4907380edc.72.1650634043272; Fri, 22 Apr 2022 06:27:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650634043; cv=none; d=google.com; s=arc-20160816; b=cNrSiBQE+6zpZk6E5IpeAIbfQVrn2qqhELfrvlwnetCRrtLtBZOzAPNsyBbmz3HVbJ ncEjN6sF2M2toOfOXhwXqob3K9RH/J/Bg8PpdMwVnxmi3ZQ51jtMWmZgx/Kx4lc/uOe8 ZCQwgaOi6y+6r2rash/tiYZsi0rAVvGyT2g9FbGb8v+42zLBLy8kzF/yJ2jai1sKgmRP tvOkQAOUfnvMhduAzxCmiNJu2CHjzacGEXFVGZcRmOerNZOicbml86XGEsoqpgiFcrMQ 6vYJH+ZHYhdztqN9pTPfuWnF42vpkXOwORVJBOhf0pWsntxwhVXhLSG6NOBj8ugvhTWF onQg== 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=yUdOQPPnIku7Enj9e1DUrdANCEB7w+1kLEEGQ0+vzrQ=; b=fO/gDvK/QrmMYDI6S4yrbcB8joo8oCC0BSlNzqoZh5JYHNhui7W4U8SJcPsaEnExZl bolWJw14tJCDmRVHI1F/AgXYPC4Wu8t5iyoz5EDnf+jpS9x3+Gb+/gG+3wt3DLyDo7GE S0U6T0wyTNQ8A7GNZ0Hx+AN3eQsMD0UUVHpovtRT/4cqpjP6cd5zbeu2CQPeJvyypAE9 uVFbMyG1kPnocyMMoCgakNjAFETpopsSqjWltqOYKvtBVj9xaZB6jrREwTZI/RUvxCo5 Y5iINpVGwkeNJVkucsJ3TtRm66/5RhhBKwj/mhtGJo7toE81yVGzrZL/exlZTafEk2NM kLFw== 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 q21-20020aa7da95000000b00418c2b5be1esi5579877eds.256.2022.04.22.06.26.57; Fri, 22 Apr 2022 06:27:23 -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 S1392389AbiDUUfp (ORCPT + 99 others); Thu, 21 Apr 2022 16:35:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49812 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230203AbiDUUfn (ORCPT ); Thu, 21 Apr 2022 16:35:43 -0400 Received: from out30-133.freemail.mail.aliyun.com (out30-133.freemail.mail.aliyun.com [115.124.30.133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A384C4AE16; Thu, 21 Apr 2022 13:32:52 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R141e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e01424;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=12;SR=0;TI=SMTPD_---0VAhaFaY_1650573164; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VAhaFaY_1650573164) by smtp.aliyun-inc.com(127.0.0.1); Fri, 22 Apr 2022 04:32:49 +0800 From: Jiapeng Chong To: pisa@cmp.felk.cvut.cz Cc: ondrej.ille@gmail.com, wg@grandegger.com, mkl@pengutronix.de, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] can: ctucanfd: Remove unnecessary print function dev_err() Date: Fri, 22 Apr 2022 04:32:42 +0800 Message-Id: <20220421203242.7335-1-jiapeng.chong@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, 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 warnings: ./drivers/net/can/ctucanfd/ctucanfd_platform.c:67:2-9: line 67 is redundant because platform_get_irq() already prints an error. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- drivers/net/can/ctucanfd/ctucanfd_platform.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/can/ctucanfd/ctucanfd_platform.c b/drivers/net/can/ctucanfd/ctucanfd_platform.c index 5e4806068662..89d54c2151e1 100644 --- a/drivers/net/can/ctucanfd/ctucanfd_platform.c +++ b/drivers/net/can/ctucanfd/ctucanfd_platform.c @@ -64,7 +64,6 @@ static int ctucan_platform_probe(struct platform_device *pdev) } irq = platform_get_irq(pdev, 0); if (irq < 0) { - dev_err(dev, "Cannot find interrupt.\n"); ret = irq; goto err; } -- 2.20.1.7.g153144c