From patchwork Sat Aug 20 15:30:16 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9291733 Return-Path: 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 AB92060574 for ; Sat, 20 Aug 2016 15:30:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DD3628C5B for ; Sat, 20 Aug 2016 15:30:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 922F728C5D; Sat, 20 Aug 2016 15:30:48 +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=-6.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4B7CD28C5B for ; Sat, 20 Aug 2016 15:30:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752835AbcHTPaq (ORCPT ); Sat, 20 Aug 2016 11:30:46 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35135 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752796AbcHTPaq (ORCPT ); Sat, 20 Aug 2016 11:30:46 -0400 Received: by mail-pf0-f196.google.com with SMTP id h186so3204187pfg.2 for ; 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=kH0ycQoCr1q2ZUjbnTzvP+6tfYlJNI6zGR+YiQ+76vEw5DH3NsH0ua7JuwCRorNtw/ H1TK9WSwODROuObABR1YD60SY+1GbU9RE2TQt3dtd/FZxgWM4gL14r5ReAFKqlLsQuFz tzCRCY7hf20juzT1eM7n5wMde7KBWBKhsiu0bGdBwNeiOqHbBkes6XnpwH8AtIxXAnw0 OTz0oIgLDi8mErgxDYrnMAXcYGyiRaGZ2l3IkobW7WgC7pDFQTswoaPeSNmybu8KgmFO bcQn8FVfNXkOjzZp/tUxvf1nlshYkMe8ZHKy6LZUZkM1hbM3raXIqvBjwHKJNbEk1s+O FqCA== X-Gm-Message-State: AEkooustf+BKLx5wSYQWtKbSHOyjbIsPK4d16IC9awA6fNHlFWDF42tnneOVQ9NtBuQHkw== 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 To: Ulf Hansson , Carlo Caione , Kevin Hilman Cc: Wei Yongjun , linux-mmc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org 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 Sender: linux-mmc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-mmc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/mmc/host/meson-gxbb.c | 4 ---- 1 file changed, 4 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);