Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1580815rwi; Mon, 31 Oct 2022 19:21:31 -0700 (PDT) X-Google-Smtp-Source: AMsMyM59UU7TMpeZVJ2YHGd/XmMC0hvYdblg5hxVkKMahMSF9/BjnffZI3qpd8uyzWsQqTVwb0Wi X-Received: by 2002:a63:1564:0:b0:46f:6aff:6976 with SMTP id 36-20020a631564000000b0046f6aff6976mr14677514pgv.500.1667269290929; Mon, 31 Oct 2022 19:21:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667269290; cv=none; d=google.com; s=arc-20160816; b=yUoyS1wV+6JuTQUEDPeX9YZLubIa3TuI3SVwmug3oxo0OTvDYUZMO0mDabnd7M+gPK IF99ViIws9dAso5PXD0SpHdtuVqEJiEXNGa1mDDTBrE3RHLqfo8XpYCccZ1mn8igasC3 c/yysokotRYlW0ML5bjWr/4CEDZQg/hJEqQ87TnzMa3T+1WWjcj4bsHNnain5lAwCtxw 0AEwCeVmbXE6A9v4InntNnLagw6dr+MS9Y1lkPJugaf0MMjiLv5Z+PkvX7ANcTGhEBrH beFfXu52MwTPT4GRhKVAa3jLl2nejVD2rOIohgvGIH8eL7odJjqH8fbyPdGvFOE4S48j ZMNw== 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=m4eosF+C60aANXpvhOfRgCQPHlCnqdoQ4hePi2hawvU=; b=NjMlSeZEVJ24/O/qc8/j5UfUPx+5RZmNenMvBH6/a2SEUfqt7CQM8Ca9Gb2M+s7aHP aiEGZU0NZZ3eJQavwA9sUymBcqYei9FaJCNrvh3Cwwy1JR5v4RSM4ZA8FfbIMuaR8EJO U/GvhOEqgjKwGh880Wp9EsTYqW3eKtSPP9k3IilxqYeO3lNnuPNmfyjQ4A3bKHPhF+Cs MhULPNLRpqAjSlwrSWuARh+N6fnlCV8ERmVuBm3lcx7GjP4unq5bEDuS4Y0BmALpeA5V 41FGn6RzlgAWNLc12rGHjvba9GLUCICR/cTxb1yh1YY+aZd8QAJFqpyZneUwPMt5ok4s DRNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 cp12-20020a056a00348c00b0056bf15d0cbfsi10100051pfb.308.2022.10.31.19.21.08; Mon, 31 Oct 2022 19:21:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-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 S229868AbiKACSS (ORCPT + 99 others); Mon, 31 Oct 2022 22:18:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56794 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229867AbiKACSI (ORCPT ); Mon, 31 Oct 2022 22:18:08 -0400 Received: from out30-131.freemail.mail.aliyun.com (out30-131.freemail.mail.aliyun.com [115.124.30.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E6A511788A; Mon, 31 Oct 2022 19:17:55 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R121e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045176;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VTaUC86_1667269072; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VTaUC86_1667269072) by smtp.aliyun-inc.com; Tue, 01 Nov 2022 10:17:53 +0800 From: Yang Li To: clabbe@baylibre.com Cc: herbert@gondor.apana.org.au, davem@davemloft.net, heiko@sntech.de, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, Yang Li , Abaci Robot Subject: [PATCH -next] crypto: Remove surplus dev_err() when using platform_get_irq() Date: Tue, 1 Nov 2022 10:17:51 +0800 Message-Id: <20221101021751.89362-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, 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-crypto@vger.kernel.org There is no need to call the dev_err() function directly to print a custom message when handling an error from either the platform_get_irq() or platform_get_irq_byname() functions as both are going to display an appropriate error message in case of a failure. ./drivers/crypto/rockchip/rk3288_crypto.c:351:2-9: line 351 is redundant because platform_get_irq() already prints an error Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2677 Reported-by: Abaci Robot Signed-off-by: Yang Li --- drivers/crypto/rockchip/rk3288_crypto.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/rockchip/rk3288_crypto.c b/drivers/crypto/rockchip/rk3288_crypto.c index 6217e73ba4c4..9f6ba770a90a 100644 --- a/drivers/crypto/rockchip/rk3288_crypto.c +++ b/drivers/crypto/rockchip/rk3288_crypto.c @@ -348,7 +348,6 @@ static int rk_crypto_probe(struct platform_device *pdev) crypto_info->irq = platform_get_irq(pdev, 0); if (crypto_info->irq < 0) { - dev_err(&pdev->dev, "control Interrupt is not available.\n"); err = crypto_info->irq; goto err_crypto; } -- 2.20.1.7.g153144c