Message ID | 1471707016-28957-1-git-send-email-weiyj.lk@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Headers | show
Return-Path: <linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id BA6FA60574 for <patchwork-linux-amlogic@patchwork.kernel.org>; Sat, 20 Aug 2016 15:31:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A99D128C5B for <patchwork-linux-amlogic@patchwork.kernel.org>; Sat, 20 Aug 2016 15:31:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9D95528C5D; Sat, 20 Aug 2016 15:31:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6EC6928C5B for <patchwork-linux-amlogic@patchwork.kernel.org>; Sat, 20 Aug 2016 15:31:12 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bb8Eh-0006uM-Ii; Sat, 20 Aug 2016 15:31:03 +0000 Received: from mail-pf0-x242.google.com ([2607:f8b0:400e:c00::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bb8ES-0006nx-Qj; Sat, 20 Aug 2016 15:30:49 +0000 Received: by mail-pf0-x242.google.com with SMTP id h186so3204189pfg.2; Sat, 20 Aug 2016 08:30:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KNdVFaonQvqElEGLYfvY+GTlmLrk3g8smGqrQ9Bg1zQ=; b=HuVDqDlKvCt7brwBwXfdMs7b8WXhTSMZC9HrOD/zCNB5q1fK5VkD+Ws4GDgnXq+6vu uEcowOVth3Bh5FCWMQoww1gpEMuUms/4ZtM7VTcx8N5+OStUFCTJBDhVm8y4m0ECeuI+ Dhv5iem4J7SmiYtbnR1h4NmtsLSR7oSK/gd/HAkrsaMRLbtae/r/ToD81mzjiC1l8SYB JlgLe7MpXOZkzvYB22wcEs8Iarc/yD8xxiGA36JaXyROBWsJpD6jB18eIaxkt3EhPOUJ IRTEw/QXJUB4P3LDt8MqHvLe2Qt5daBTG3gT7H991588j4/vtHYKXr3/M4YEroUJyn91 Qcmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=KNdVFaonQvqElEGLYfvY+GTlmLrk3g8smGqrQ9Bg1zQ=; b=haLwH2ecP/3Mfbf2ZLzcuBkDk4kyT5D7a9hqJT518quASTV0ty8NQuk4KdjbZMC410 8ZkuLU3mQoxDkn3mewsq/6CtD6VkjARFMJKYHRncE7dcq7laWPdwq0uWxN9tpxurXHQX FW01YeJyXQFS32+1Qhv0+/+TqL13R68PEy3tnE4R5PYlc6rHuV1WiCiGeq/5bW56lkf4 JcoROLeUbAxuc8j/q65HsZVZK13sSnkY+gixGrC+9BXsWgPmQfJl10/Srh3EEBex2w3c MXA7s0gau8czO4MvtdShS6qwwwID0XkbPmCA52/jB11+lAlKY6h7XvUJk8MVowq2fBXu e7+g== X-Gm-Message-State: AEkoouuGj7JDGg6EshqiBhY5Od/En4YOjDowe6BSP+gQ04g1OtPIkxYo6USauPY4s/xCqQ== X-Received: by 10.98.98.193 with SMTP id w184mr25334690pfb.120.1471707027767; Sat, 20 Aug 2016 08:30:27 -0700 (PDT) Received: from localhost.localdomain.localdomain (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id m128sm14863181pfm.42.2016.08.20.08.30.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Aug 2016 08:30:27 -0700 (PDT) From: Wei Yongjun <weiyj.lk@gmail.com> To: Ulf Hansson <ulf.hansson@linaro.org>, Carlo Caione <carlo@caione.org>, Kevin Hilman <khilman@baylibre.com> Subject: [PATCH -next] MMC: meson: remove redundant return value check of platform_get_resource() Date: Sat, 20 Aug 2016 15:30:16 +0000 Message-Id: <1471707016-28957-1-git-send-email-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160820_083048_946412_0720940C X-CRM114-Status: UNSURE ( 8.25 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: <linux-amlogic.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-amlogic/> List-Post: <mailto:linux-amlogic@lists.infradead.org> List-Help: <mailto:linux-amlogic-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-amlogic>, <mailto:linux-amlogic-request@lists.infradead.org?subject=subscribe> Cc: linux-mmc@vger.kernel.org, Wei Yongjun <weiyj.lk@gmail.com>, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-amlogic" <linux-amlogic-bounces@lists.infradead.org> Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/drivers/mmc/host/meson-gxbb.c b/drivers/mmc/host/meson-gxbb.c index 10eac41..96cd883 100644 --- a/drivers/mmc/host/meson-gxbb.c +++ b/drivers/mmc/host/meson-gxbb.c @@ -811,10 +811,6 @@ static int meson_mmc_probe(struct platform_device *pdev) } res = platform_get_resource(pdev, IORESOURCE_MEM, 0); - if (!res) { - ret = -ENODEV; - goto free_host; - } host->regs = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(host->regs)) { ret = PTR_ERR(host->regs);
Remove unneeded error handling on the result of a call to platform_get_resource() when the value is passed to devm_ioremap_resource(). Signed-off-by: Wei Yongjun <weiyj.lk@gmail.com> --- drivers/mmc/host/meson-gxbb.c | 4 ---- 1 file changed, 4 deletions(-)