Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp685028rwb; Fri, 23 Sep 2022 02:41:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Xxl6L2zKtiCBFSM55DjoCdtDvTr3EDjyL97F7gWk0x85AMuirCuqkV4HqCLO6w4vguAcl X-Received: by 2002:a17:907:d8e:b0:77d:2649:1a78 with SMTP id go14-20020a1709070d8e00b0077d26491a78mr6188848ejc.521.1663926091848; Fri, 23 Sep 2022 02:41:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663926091; cv=none; d=google.com; s=arc-20160816; b=PheASVRKg0hfXHvX58p2j1Fix9jeC1yph+O5sL6HHDKYpGvlmUIuV0qnA0h4pt527l e+dCzqvkfSNXpBD8SHC0J5byZkfEa4kKq+tIapB3gRt5lIxNt/tGCvNEGQZx/3iupgr1 q0wF+Xka2EDpPsbyVh/2MwBdHX5X1nv/KBPkFpEt6DRlfll0jqNFeXUIkFagwY+3TZzE 3q9E5+R9/cSipI1/bEhDq+lZom4vbAIcezJp3S0m6dRiK9AJztbsqgW6i878g0X5p9ji /0P46DfFKd6Y2xwW9fEUd9iDSa5ljzOAqzf0xVx4s/90UWlBNGW21TLChgJ36FEd/3CW BUrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=mdGLZ/MRHgXZ38d+QlKm3lLfQpCuRv5eH3taFITHEec=; b=CAyh5eT1Wwn3Oi5mDlsVMDEVzO9sVICxOTetl78HQ3/Kf3PWlbHEoP/98bpQqfqhCI naOLaXTk26yCmxwgn1QU4Oyyk5ahpdHs4FszKGOFMZC9fLKMytAASHKznY3PDTayeH+0 aevRp2X4Nn2uKsQavvAPtVBArje0Rf7prb38C6u0r5sjfmSKwhnEZT2e5H+8UulHW/1O srCKShbL2iSL0FxK8dkcecByiSqbHdbcczQCnDiBNz9e5Xhv2uOqkHqWxSxDcdYDQjc/ 9rVnNms2XmRoSIfY4vNK4/gQZzXbQex+q9qsGyDqpjspDCZutOmfcmQMI0KEtKuaSkB6 0Ltw== 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b17-20020a056402279100b0045181429f39si8836631ede.55.2022.09.23.02.41.03; Fri, 23 Sep 2022 02:41:31 -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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229496AbiIWJ2x (ORCPT + 99 others); Fri, 23 Sep 2022 05:28:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41568 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230525AbiIWJ2Q (ORCPT ); Fri, 23 Sep 2022 05:28:16 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C12FAF192E for ; Fri, 23 Sep 2022 02:27:54 -0700 (PDT) Received: from dggemv704-chm.china.huawei.com (unknown [172.30.72.55]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4MYmwF6l4czHpkC; Fri, 23 Sep 2022 17:25:33 +0800 (CST) Received: from kwepemm600008.china.huawei.com (7.193.23.88) by dggemv704-chm.china.huawei.com (10.3.19.47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 17:27:45 +0800 Received: from huawei.com (10.175.100.227) by kwepemm600008.china.huawei.com (7.193.23.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 23 Sep 2022 17:27:44 +0800 From: Shang XiaoJing To: , , , , , , , CC: Subject: [PATCH -next] crypto: aspeed - Remove redundant dev_err call Date: Fri, 23 Sep 2022 18:01:59 +0800 Message-ID: <20220923100159.15705-1-shangxiaojing@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.175.100.227] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm600008.china.huawei.com (7.193.23.88) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 devm_ioremap_resource() prints error message in itself. Remove the dev_err call to avoid redundant error message. Signed-off-by: Shang XiaoJing --- drivers/crypto/aspeed/aspeed-hace.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/crypto/aspeed/aspeed-hace.c b/drivers/crypto/aspeed/aspeed-hace.c index 3f880aafb6a2..e05c32c31842 100644 --- a/drivers/crypto/aspeed/aspeed-hace.c +++ b/drivers/crypto/aspeed/aspeed-hace.c @@ -123,10 +123,8 @@ static int aspeed_hace_probe(struct platform_device *pdev) platform_set_drvdata(pdev, hace_dev); hace_dev->regs = devm_ioremap_resource(&pdev->dev, res); - if (IS_ERR(hace_dev->regs)) { - dev_err(&pdev->dev, "Failed to map resources\n"); + if (IS_ERR(hace_dev->regs)) return PTR_ERR(hace_dev->regs); - } /* Get irq number and register it */ hace_dev->irq = platform_get_irq(pdev, 0); -- 2.17.1