Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3098246pxf; Sun, 21 Mar 2021 19:05:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwoZFeBn3btWa2nUoEkGtuo0llMEO0Zw7mz9sGg0z7M8NHqfs9aWce2isCZd9yG1nJIX8kX X-Received: by 2002:a17:906:d94:: with SMTP id m20mr16478091eji.511.1616378753399; Sun, 21 Mar 2021 19:05:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616378753; cv=none; d=google.com; s=arc-20160816; b=a/z0dd9TBruKMgVzxz7QH9p7hqIs+qjPBzS0ppJDgfZMzJGSlWGz7OHZ1KxNitJdPH 7njP2gwv6oishCYWsfPjm+PVrFKrsfCvFu8GHKxNyh9avAnFoc/WkB9JAk5Y5BBBNHFh uXJk/dwxfiQ3C5muV2nZoGFycHOIousioGClpX4y35m2wyqeYmxQeGlNDHxmXKyS4mRP lepvoUTjq9tDbxUw9Ys5bHlmLo8MK78KsLqG0eHbvK+D7CBDOHnvp3e9o0Bdx4trklnJ mOFunUT/eLZLxfAL8KAClkbBGqLH2Q5FOo57nZ+IqUkWQKJkrF3XOFhTAfStZwplz3Js Ofkw== 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=IDC0A4BSejs8xTT957eE/Fy0jTGJjmbvioYbScut5S8=; b=EIpEEZA88pmh/SgsTcnr7N8wONEDyEiC496BdLBTy0cugIJGqpwzdb8l0MWjqJ3aQE i/W8y6CruZN+qQedLdqaQDKdMqEBpmWh2+JBU1CgDPb9h7yCJej0UxopwKFg0qnl2IdO PKM0vZntmKhlhnd16PBUUvgmD5fWLUVjTiTM+oPhMsZcSpDkVl5Egb6gXGBFcnyPKT6/ D26dx6Z9ZO0KHEdfzG2xETlRpHcjJik+D62c0w3MEn+Apx1UZPj+SwBOQUCgv4tiO8eM KUhYlUMcc5pqH84dsystl45isHn5do69Xkirarz9aA516aQog0L7NKM9io/pUxXyDBEL 1Aeg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z23si9616720eju.427.2021.03.21.19.05.22; Sun, 21 Mar 2021 19:05:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229883AbhCVCDP (ORCPT + 99 others); Sun, 21 Mar 2021 22:03:15 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:14117 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229894AbhCVCDM (ORCPT ); Sun, 21 Mar 2021 22:03:12 -0400 Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F3d5P2QbWz19GY9 for ; Mon, 22 Mar 2021 10:01:13 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.498.0; Mon, 22 Mar 2021 10:02:48 +0800 From: Tian Tao To: CC: Subject: [PATCH] hwrng: cctrng - remove the redundant log Date: Mon, 22 Mar 2021 10:03:24 +0800 Message-ID: <1616378604-35134-1-git-send-email-tiantao6@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org Fix the following coccicheck warning: drivers/char/hw_random//cctrng.c:531:2-9: line 531 is redundant because platform_get_irq() already prints an error. Signed-off-by: Tian Tao --- drivers/char/hw_random/cctrng.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/char/hw_random/cctrng.c b/drivers/char/hw_random/cctrng.c index 0efb37a..ae0621f 100644 --- a/drivers/char/hw_random/cctrng.c +++ b/drivers/char/hw_random/cctrng.c @@ -527,10 +527,8 @@ static int cctrng_probe(struct platform_device *pdev) /* Then IRQ */ irq = platform_get_irq(pdev, 0); - if (irq < 0) { - dev_err(dev, "Failed getting IRQ resource\n"); + if (irq < 0) return irq; - } /* parse sampling rate from device tree */ rc = cc_trng_parse_sampling_ratio(drvdata); -- 2.7.4