Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp5830316ybi; Wed, 31 Jul 2019 04:04:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqxIuGbusERQ6GZkxvPDdiaFcAsVAMXtuCrlpYs8DM07quiVZKF6TuxUgfxIuAsOvxGzeFGo X-Received: by 2002:a17:90a:a116:: with SMTP id s22mr2368144pjp.47.1564571081199; Wed, 31 Jul 2019 04:04:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564571081; cv=none; d=google.com; s=arc-20160816; b=p4gW6EocrJZh16IgHERmtxMUSaElAA7dCcVF4NG1vlT9TTMdhnlcaE40fRVkP+lfE9 9AnPmPqBrs/2d9sj00puVzHG7ttEixp/4lEQBLmwkbfNYkN9eEUGkCCxlPRhhPWkLRub KSD93/+jrTBA7SwoNAFpTXgmDFKcKOCNWKnb6Gy0klfPXOOmHbdaaUCjlZ1NPHydQT5k 4dQd4aMtLJtLBbPtEi3Mtt2/Jd7zfBAE3R4lrvOEG4HlHEB+ICJVKznFEcaZVw8nSB8I MswSTPE7eSk9Q7jQrfp/vgRzEdwKZVXqICEhl6lmTyMFCslmwSV3/nR7o2KdUHVZT0mB PIvQ== 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=5SbGJ6LmWdn2Nvv5oBL+F9/rprPsDtZisdfl6ApLyRo=; b=eb6UrEfxsGye55I3V+Iaz4MC7uU99y3rQFQo5K7S6FHnauwdUQeRfsx6MUDStEwA+e +PpVOb2A/tLXnejkrERY0zyiJTsFZSKCWf2fjvRFyFYOAM/7JmSQg6i0v4Zp+weV0rl4 gk4LQcYOfNVmRbKWH0H5h1CeXOd9zRUIW5tP5t4dargYRtG1eRVF1PgcjfY/xMP6yoSL IsGY3t9UqMGG/c4AavduoIRvRcpeinrNqa9SYAFUQstuTTSWCuN1MsmIh3YrgKJCEZh8 LT+2mpj8s6i4fxx3Wa8/jNiaB3hIH5kiK+iLQ3vuMDY5AeEKEcLV44NIfcyt6r1dcXdJ igtA== 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 h98si29484137plb.206.2019.07.31.04.04.25; Wed, 31 Jul 2019 04:04:41 -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 S1728867AbfGaJsS (ORCPT + 99 others); Wed, 31 Jul 2019 05:48:18 -0400 Received: from cmccmta2.chinamobile.com ([221.176.66.80]:2142 "EHLO cmccmta2.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726605AbfGaJsS (ORCPT ); Wed, 31 Jul 2019 05:48:18 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.11]) by rmmx-syy-dmz-app08-12008 (RichMail) with SMTP id 2ee85d4163cf051-9f86a; Wed, 31 Jul 2019 17:47:59 +0800 (CST) X-RM-TRANSID: 2ee85d4163cf051-9f86a 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 2ee65d4163cdc33-15425; Wed, 31 Jul 2019 17:47:59 +0800 (CST) X-RM-TRANSID: 2ee65d4163cdc33-15425 From: Ding Xiang To: linus.walleij@linaro.org, bgolaszewski@baylibre.com Cc: linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] gpio: ixp4xx: remove redundant dev_err message Date: Wed, 31 Jul 2019 17:47:54 +0800 Message-Id: <1564566474-18294-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/gpio/gpio-ixp4xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-ixp4xx.c b/drivers/gpio/gpio-ixp4xx.c index 670c2a8..2b2b89b 100644 --- a/drivers/gpio/gpio-ixp4xx.c +++ b/drivers/gpio/gpio-ixp4xx.c @@ -321,10 +321,8 @@ static int ixp4xx_gpio_probe(struct platform_device *pdev) res = platform_get_resource(pdev, IORESOURCE_MEM, 0); g->base = devm_ioremap_resource(dev, res); - if (IS_ERR(g->base)) { - dev_err(dev, "ioremap error\n"); + if (IS_ERR(g->base)) return PTR_ERR(g->base); - } /* * Make sure GPIO 14 and 15 are NOT used as clocks but GPIO on -- 1.9.1