From patchwork Fri Nov 24 16:24:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 119614 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp2447281qgn; Fri, 24 Nov 2017 08:30:43 -0800 (PST) X-Google-Smtp-Source: AGs4zMYELmALq2xGtCt711IHzd6HtOMQRA0hVqobLva3WPQaokVnHZ5IuxVrI6zALCImAr4sB84F X-Received: by 10.84.133.162 with SMTP id f31mr30147422plf.304.1511541043713; Fri, 24 Nov 2017 08:30:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511541043; cv=none; d=google.com; s=arc-20160816; b=kx7jBl1eZ9wemXpqvEeXuSOXu+UeP6GzU+hPFC+u+wmhluF2S2l8D/23CL8NzE3NLL +yJzIEYRtbFS+ZWSOmGWPW5a8qSplZlSNhsn6sLpysTC0ZCgLCyJKzS9Zpa6mld3Kfpr AGgTlwT3O/zJhX+/8zT2fDd30TEcX7U7msQzNQRLbBLIO9buiSfXg1mAPBwyjfvgLhMC qZbr6pBWgv+Imjrh5Ctym7IIMMce8vhfdslbeoQ6eHfDDtY7agyw+9mtoqXj5Ps3BXIm j1nRz49VCB/msi4UDAePEBOQlErnswOzd9eQViwdwC04C1ZWe6ftJOefhnpeho9QwAgy zVxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=GtCSagOYTLDjcvugNilsQdnv0e7zKp2rAYr3MOAfurE=; b=N0cRr7NA8tsHE0I7AcenhGBuhFdXtMOt+dwjYUmPZsbxJpIFHl7r0+tppnrOo9RZgV opU1nVt19BTb1k1Tcl+BVi6e7fQeDQybYNJftDdO6xJNenM8r2u9LonIZ/cDvLZVUnRh MfQouqyXaUOZdy78B+7NFnRnHXpysWpq/OjD/JhKb6ccfotLaQzQzcgAMV7LEt646Aqb kHbh32UFxmz+izzNWew6qO4WoD+RlBSHmol4wK5ekd1X3J8ki+vQHpV4ldr6wR3mUgqy 3mAs7QX7xQdCfgT3uRv/MYzqk324L6dkYnN4bWRrJFckObSMzVqlgHcp5ZSBr+NuTF/i 2xBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2r6O99qv; 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 97si18810273plc.450.2017.11.24.08.30.43; Fri, 24 Nov 2017 08:30:43 -0800 (PST) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=2r6O99qv; 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 S1753988AbdKXQal (ORCPT + 28 others); Fri, 24 Nov 2017 11:30:41 -0500 Received: from conuserg-11.nifty.com ([210.131.2.78]:61468 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753643AbdKXQ0A (ORCPT ); Fri, 24 Nov 2017 11:26:00 -0500 Received: from grover.sesame (FL1-125-199-20-195.osk.mesh.ad.jp [125.199.20.195]) (authenticated) by conuserg-11.nifty.com with ESMTP id vAOGP9Vv007100; Sat, 25 Nov 2017 01:25:18 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com vAOGP9Vv007100 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1511540719; bh=GtCSagOYTLDjcvugNilsQdnv0e7zKp2rAYr3MOAfurE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=2r6O99qvQTuH4kHvK6JBkGKXzn0D7BYrWnTTqNhehQEXKiRTLOS0Y1ps9aL/Zed96 HGozp1BVCICEXMoyur4Oeg3TzocDOUYNSr5jqzXkyg9iB+l4JTVd3JR0o8SrgvlNUA 4F8tLcUHp2JkBTWVAKyWFlQ7icqBGus+aQRYxAGq6Cr7yQYcT14eeSZU59LBd0V5IU Ps4kSvUwz0LScgGYckCbr2QmXNR7bYBjh3JSdXXz4Grc/xLRQ2er9S5/fFfOn0DPNT HuMHhr3+6qAX6MwukQhnsOFn8yXfmlcWhhFvD33UAlhFVtNphQXAHTU7UhZ5fImM32 6zykTGG2I6Iuw== X-Nifty-SrcIP: [125.199.20.195] From: Masahiro Yamada To: linux-mmc@vger.kernel.org, Wolfram Sang Cc: Simon Horman , Yoshihiro Shimoda , linux-renesas-soc@vger.kernel.org, Masahiro Yamada , linux-kernel@vger.kernel.org, Ulf Hansson Subject: [PATCH v2 11/22] mmc: renesas_sdhi: remove always false condition Date: Sat, 25 Nov 2017 01:24:46 +0900 Message-Id: <1511540697-27387-12-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511540697-27387-1-git-send-email-yamada.masahiro@socionext.com> References: <1511540697-27387-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org renesas_sdhi_probe() always sets host->dma as follows: host->dma = dma_priv; !host->dma is always false. Signed-off-by: Masahiro Yamada --- Changes in v2: - Newly added drivers/mmc/host/renesas_sdhi_sys_dmac.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/mmc/host/renesas_sdhi_sys_dmac.c b/drivers/mmc/host/renesas_sdhi_sys_dmac.c index 9ab1043..e210644 100644 --- a/drivers/mmc/host/renesas_sdhi_sys_dmac.c +++ b/drivers/mmc/host/renesas_sdhi_sys_dmac.c @@ -360,8 +360,8 @@ static void renesas_sdhi_sys_dmac_request_dma(struct tmio_mmc_host *host, struct tmio_mmc_data *pdata) { /* We can only either use DMA for both Tx and Rx or not use it at all */ - if (!host->dma || (!host->pdev->dev.of_node && - (!pdata->chan_priv_tx || !pdata->chan_priv_rx))) + if (!host->pdev->dev.of_node && + (!pdata->chan_priv_tx || !pdata->chan_priv_rx)) return; if (!host->chan_tx && !host->chan_rx) {