Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp360206rwl; Fri, 4 Nov 2022 00:59:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6DSd6QKkoP41PYSS8/VzdnKi8EfXf5+wRK/y42oh4IaQdZxo8qqFyazEHO4yJLnjlr+fwK X-Received: by 2002:a17:907:318b:b0:740:33f2:9e8 with SMTP id xe11-20020a170907318b00b0074033f209e8mr32322572ejb.138.1667548767392; Fri, 04 Nov 2022 00:59:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667548767; cv=none; d=google.com; s=arc-20160816; b=uD8f3IRuwztm/Bw7O6BMugRZjJXG7ObbmPvsGjCzqZ2viDqfNn/G/9sraoMvRljl7u +ZgSikV4/H5JerUJwRhChWhxg9ZuXmHWFLTjDD9gHDD7LhBI597dPSMgt2NLgwEGl5x9 lSZYdWCfE1K8Eu5dfTtNZtUa3p/uf+eAsdbLoy80BKqS0HKNR4e+O/DUKYOkHEn8YBv9 AxA69t55HT+UbN8Ri096jnxTVvaps260Zzk8J+rwYOPnxPwQ15CDu+N0Oim/quQ4KrQ8 KvZBRyKPYSydPCntL/yP7QWX2UQfRBdoioWDriwJpOLuBUqaEpdEJ64aG65xL/bGEtEq AUlw== 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=pbxXdFGH+As+inREa8LvJoDYVMKxoTA3ghAguySPIjU=; b=ib8QzcAa4uAnsbpozHoiaIHq+e16lDg577C4/nryIRnbcZJu0xsT1peA8UXQ6Z38UK 44HxkLeMSSS9pctDqF1JKSKRRwgkbX8+iTPDFmnitTU7Kz4V7E22YngQyPN7JN7FmFuX XSWiNDAn3xzixSX2cmYdglCWhwRWMAQ6aF566idE3/jXmKUWsw4UXZ7jtSZK+4ZMPHB4 cziwIDz1d5OxJrfS2yJ5o0NexAyR32aaAN6JGzJ1FORZbM7JZHsT4iiqXzlFcl1KiT0S clad4LQmAob5OlSwKP+sFqmVoSIacluUXpdfox37Pt2wUT4pmBxB2LfF5tA0stzjJNyB clNQ== 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 q15-20020a056402518f00b00457f9c97f13si5057886edd.581.2022.11.04.00.58.57; Fri, 04 Nov 2022 00:59:27 -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 S229598AbiKDHpg (ORCPT + 99 others); Fri, 4 Nov 2022 03:45:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34276 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231182AbiKDHpd (ORCPT ); Fri, 4 Nov 2022 03:45:33 -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 F38A42018B; Fri, 4 Nov 2022 00:45:31 -0700 (PDT) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R271e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018045192;MF=yang.lee@linux.alibaba.com;NM=1;PH=DS;RN=10;SR=0;TI=SMTPD_---0VTw1.EU_1667547928; Received: from localhost(mailfrom:yang.lee@linux.alibaba.com fp:SMTPD_---0VTw1.EU_1667547928) by smtp.aliyun-inc.com; Fri, 04 Nov 2022 15:45:29 +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 v2] crypto: rockchip: Remove surplus dev_err() when using platform_get_irq() Date: Fri, 4 Nov 2022 15:45:27 +0800 Message-Id: <20221104074527.37353-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 --- change in v2: --According to Corentin's suggestion, make the subject started by "crypto: rockchip:". 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