Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp5994107ybe; Tue, 10 Sep 2019 11:53:19 -0700 (PDT) X-Google-Smtp-Source: APXvYqw3h3V8eLilDq11zlHM4575/xaSy1luj44vHVdXNRJsWCvc2vqHp4CMjFRDXpaw2sAgMf/4 X-Received: by 2002:a50:ed1a:: with SMTP id j26mr20902177eds.138.1568141599510; Tue, 10 Sep 2019 11:53:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568141599; cv=none; d=google.com; s=arc-20160816; b=qptpumWMtQ4zOrRlhswnfCNPa468w4kUypyT+yed+CYRh3Z6rUVpEYCG37Wp1ZMYaN 08W0aOyMrBH/m3wmivCz9otIBjO1NgONpX//UgiQQykmiBIHiog5oN2jXCELLDMez5cY pJVkMxzzV3rI5T9IpWeIbAlyy3dYRgMVmfTZsstRKNjkIq4DGC5nB0tn4L80Jfp1e+xu SoIlCg0Qyd8XbyFJoCgw+nj8KxkUmM7Dv2dd88BIBMKzm4KvtgHRowq31D88c+SjKLHa mET5wWrNuFrw+NSyLFnAnb+JSTN2rB60A4cIcDf0hddEKVSl5X39ul7+yNNQUStHrTV1 BfcA== 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=k2BbKJi8yv2ckHYrO+sT8pH6JFxpuH8tGU18ajnfYvI=; b=FICvTuL3LiBwxIYCGELYFDLM4Bni0lnibxt2Q8y57lnqJS1TekPpjfBflWk+RH4jdq CBcigIGW/kPpMq+KPOgwH6PIaejC4MdhUb7o0AtwkqPgyp9Esovu5/EjQBtQ+CTVRxGy mnEXX+6fwSjES2cwb/9eBVl+iqDyCpiTxW7t7zHZBs5aZ69wSteSbygb/zCX9TAFD5cA sekYUvC/6Y/dS2ySKKF4XaIA1d/NluiQbhdGp7F0NUq3pMyDy+tjyamJdhpewW2LaGpT qX0+XnX06UMWks66W3kWmVIgXA/Eb7rUw1tjOz7l2+NCy69TEZyWmxirB4+8qKnV0vlR OGYg== 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 a5si11475752edd.448.2019.09.10.11.52.55; Tue, 10 Sep 2019 11:53:19 -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 S1731297AbfIJJ11 (ORCPT + 99 others); Tue, 10 Sep 2019 05:27:27 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:2978 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726060AbfIJJ11 (ORCPT ); Tue, 10 Sep 2019 05:27:27 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.13]) by rmmx-syy-dmz-app05-12005 (RichMail) with SMTP id 2ee55d776c71e10-df552; Tue, 10 Sep 2019 17:27:13 +0800 (CST) X-RM-TRANSID: 2ee55d776c71e10-df552 X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.105.0.243]) by rmsmtp-syy-appsvr07-12007 (RichMail) with SMTP id 2ee75d776c6ed83-6fa8a; Tue, 10 Sep 2019 17:27:13 +0800 (CST) X-RM-TRANSID: 2ee75d776c6ed83-6fa8a From: Ding Xiang To: mdf@kernel.org, linux-fpga@vger.kernel.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] fpga: remove redundant dev_err message Date: Tue, 10 Sep 2019 17:26:56 +0800 Message-Id: <1568107616-12755-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/fpga/ts73xx-fpga.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/fpga/ts73xx-fpga.c b/drivers/fpga/ts73xx-fpga.c index 9a17fe9..2888ff0 100644 --- a/drivers/fpga/ts73xx-fpga.c +++ b/drivers/fpga/ts73xx-fpga.c @@ -119,10 +119,8 @@ static int ts73xx_fpga_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); priv->io_base = devm_ioremap_resource(kdev, res); - if (IS_ERR(priv->io_base)) { - dev_err(kdev, "unable to remap registers\n"); + if (IS_ERR(priv->io_base)) return PTR_ERR(priv->io_base); - } mgr = devm_fpga_mgr_create(kdev, "TS-73xx FPGA Manager", &ts73xx_fpga_ops, priv); -- 1.9.1