Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp10845324ybi; Thu, 25 Jul 2019 06:04:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwrKbYg7bUoliwnQmXF+BokJeksRQLQKCIbcJNkTbgBMYxVXDTmc3MWca5rTyus76JAC/XL X-Received: by 2002:a65:534c:: with SMTP id w12mr86501591pgr.51.1564059879148; Thu, 25 Jul 2019 06:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564059879; cv=none; d=google.com; s=arc-20160816; b=rxdhoY2C0rVMWRGtEYxEAAO1HUP9UXePHFu9nRBZ1zwDBQonpquhELySDBsGUuPyJ6 WpDgu+wka9rb4MabQ15/A84egHQRzFyoumr7VhXCcVmqqaSIE9MboX4YZxR/4plCbgKS EAjuvCNB6YBVzkBoU3ans3m1xSlKtgSTC+ZAPnTC7B65B1HqFRSVV4btYKeVKHkgdpGC dMcVSBkT8T5ZEzUqnL1dxsp+++KXSLCmIIN86ZWZPje7KQkiGODz4DFgLi44yl1jyrps HN9M3bxVkG4jTBFy0/ih9KMxrVDePM0B6XTKSe5AfmnL1ZI1xFSJ8bt0WVCg/OOeUVEh oxbQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=tjKbsGxh2SkhhfdgVLp0m+p52x+HYQUwi/MnQx5+6VY=; b=z0UdjSDWrYrWncraOEE1yiAotns4k5EfejhjzSNjyF6zbth4ZoaDWQ/DgsN+TTOWo3 d7KhxlFiZUStRerAHVFexd9gKscQQ9Q5d8oEER/idg5Ry6U2PAG544yhW+S4GmMaNAbR xso3uWIA9NmqW481Fnyof+JBkBTAWcPfFuWfZVGDzBNeqcr7PAaDzau9iJo1mtl6Mpy/ BCqQmKMl/tt88XDVYDA1uD9WS45xLLGMrsLhmqljl+btAraRTSIuMRJ8FYUGPtPIjuds UKXSoF9JWyATNkviuUSZQFWy0+zSkIWZTcZz9UJ41CqFAHUDHwOGrcdqMdAfgjRvCgKP hZqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i64si19076302pge.307.2019.07.25.06.04.23; Thu, 25 Jul 2019 06:04:39 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728724AbfGYJtU (ORCPT + 99 others); Thu, 25 Jul 2019 05:49:20 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:2516 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725808AbfGYJtU (ORCPT ); Thu, 25 Jul 2019 05:49:20 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.11]) by rmmx-syy-dmz-app05-12005 (RichMail) with SMTP id 2ee55d397b00d89-2a41c; Thu, 25 Jul 2019 17:48:48 +0800 (CST) X-RM-TRANSID: 2ee55d397b00d89-2a41c X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.105.0.243]) by rmsmtp-syy-appsvr06-12006 (RichMail) with SMTP id 2ee65d397aff457-45244; Thu, 25 Jul 2019 17:48:48 +0800 (CST) X-RM-TRANSID: 2ee65d397aff457-45244 From: Ding Xiang To: srinivas.kandagatla@linaro.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] nvmem: remove redundant dev_err message Date: Thu, 25 Jul 2019 17:48:38 +0800 Message-Id: <1564048118-8593-1-git-send-email-dingxiang@cmss.chinamobile.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org devm_ioremap_resource already contains error message, so remove the redundant dev_err message Signed-off-by: Ding Xiang --- drivers/nvmem/bcm-ocotp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/nvmem/bcm-ocotp.c b/drivers/nvmem/bcm-ocotp.c index a809751..460a220 100644 --- a/drivers/nvmem/bcm-ocotp.c +++ b/drivers/nvmem/bcm-ocotp.c @@ -271,10 +271,8 @@ static int bcm_otpc_probe(struct platform_device *pdev) /* Get OTP base address register. */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); priv->base = devm_ioremap_resource(dev, res); - if (IS_ERR(priv->base)) { - dev_err(dev, "unable to map I/O memory\n"); + if (IS_ERR(priv->base)) return PTR_ERR(priv->base); - } /* Enable CPU access to OTPC. */ writel(readl(priv->base + OTPC_MODE_REG_OFFSET) | -- 1.9.1