Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp274389pxf; Thu, 8 Apr 2021 02:51:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJze4SzWpWPqZt2nermkH+AIXayXM4krWruHVDZddBbtqTcvYdcVV8CgJ4bLIkMq+OTptyPh X-Received: by 2002:aa7:d4cc:: with SMTP id t12mr341303edr.261.1617875464906; Thu, 08 Apr 2021 02:51:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617875464; cv=none; d=google.com; s=arc-20160816; b=JpmTCn31KXx4/nj5ryRzX5TGqXy9BiBuzkTIkiIQaZNbD3mQ7kpGe5bF/tSk6HvwXU 9M0h7CPAo5eV8tgmIyfw4B6bbZI96Dy0hOqe1/vkSdbX7p3tH894TjDc+x0fnW4n9wLa 9I52Y11QJOmeGyO1GXiG+NGlf5oiqpdjTnQ+KhUJBPY20DWPTSveeQBUkvZmisyHzTCM aeDlHes37cUSet9RbRLHBfbA4R+b4KPgLb1M6v642uwB5DVMHLOAtzYe5BTcMmmKQ4TZ TxKqmJndYIlUT+xNewYWqmYQb9N76azk+4rmlh+wXTMZmCUUpucDmRHHJLk6xFJJIYg6 yfTQ== 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=3Fr7UyTm3RBmP5VlgNxYfj6vCkREfCQAbQCoU7TTd50=; b=PnJ9Ok/rfUNY8xXaZkhqrB82pix/HloLmgjLGs+YsTM8yD6bWeWAdXsudCO+Cseym+ KIPdHVFryURb5yMPlSQUmUIu3u07hUVWvDgJBzoJ0jutuCLvd6LbJT+ARNzhxhwlYm8h mHYzb8d5JybPC6RFtLu9b2svuPg6YE7jwCR4do1kSDlhyVE1+7HBYnVzVq8NEa65bInZ JFH85iFxneUR7SPsVZQ4nG8OIoR36HLbrcxQg60gM7VLUw5knm+boghqu9lV9YfHAbaL QX+cvM5tqgm2WjnDKwv4Mh0BuOhSZVgcekzStyukNJruZglzSJ3sCUPjZUj/UoWCsLD9 4dfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id jl7si11229272ejc.49.2021.04.08.02.50.42; Thu, 08 Apr 2021 02:51:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231145AbhDHJtq (ORCPT + 99 others); Thu, 8 Apr 2021 05:49:46 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:16087 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230322AbhDHJtp (ORCPT ); Thu, 8 Apr 2021 05:49:45 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FGGdN5Kxnz19Krq; Thu, 8 Apr 2021 17:47:20 +0800 (CST) Received: from huawei.com (10.67.174.117) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 17:49:22 +0800 From: Ruiqi Gong To: , Zhang Rui , Daniel Lezcano , Nicolas Saenz Julienne , Florian Fainelli , Ray Jui , "Scott Branden" , CC: Wang Weiyang , , , , , Subject: [PATCH -next] thermal: bcm2835: remove redundant dev_err call in bcm2835_thermal_probe() Date: Thu, 8 Apr 2021 06:03:29 -0400 Message-ID: <20210408100329.7585-1-gongruiqi1@huawei.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.174.117] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There is a error message within devm_ioremap_resource already, so remove the dev_err call to avoid redundant error message. Reported-by: Hulk Robot Signed-off-by: Ruiqi Gong --- drivers/thermal/broadcom/bcm2835_thermal.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/thermal/broadcom/bcm2835_thermal.c b/drivers/thermal/broadcom/bcm2835_thermal.c index 3199977f1e73..c8e4344d5a3d 100644 --- a/drivers/thermal/broadcom/bcm2835_thermal.c +++ b/drivers/thermal/broadcom/bcm2835_thermal.c @@ -184,7 +184,6 @@ static int bcm2835_thermal_probe(struct platform_device *pdev) data->regs = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(data->regs)) { err = PTR_ERR(data->regs); - dev_err(&pdev->dev, "Could not get registers: %d\n", err); return err; }