From: Marek Vasut Date: Mon, 9 Apr 2018 17:30:52 +0200 Subject: [U-Boot] [PATCH 02/15] mmc: uniphier: Drop useless check In-Reply-To: <20180409153105.13597-1-marek.vasut+renesas@gmail.com> References: <20180409153105.13597-1-marek.vasut+renesas@gmail.com> Message-ID: <20180409153105.13597-2-marek.vasut+renesas@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Drop useless check in matsu_sd_{read,write}q(), this is only ever called to read the data from FIFO and only when 64bit variant of the block is used anyway. Signed-off-by: Marek Vasut Cc: Jaehoon Chung Cc: Masahiro Yamada --- drivers/mmc/matsushita-common.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/matsushita-common.c b/drivers/mmc/matsushita-common.c index 4553b168f5..ec5469850b 100644 --- a/drivers/mmc/matsushita-common.c +++ b/drivers/mmc/matsushita-common.c @@ -23,19 +23,13 @@ DECLARE_GLOBAL_DATA_PTR; static u64 matsu_sd_readq(struct matsu_sd_priv *priv, unsigned int reg) { - if (priv->caps & MATSU_SD_CAP_64BIT) - return readq(priv->regbase + (reg << 1)); - else - return readq(priv->regbase + reg); + return readq(priv->regbase + (reg << 1)); } static void matsu_sd_writeq(struct matsu_sd_priv *priv, u64 val, unsigned int reg) { - if (priv->caps & MATSU_SD_CAP_64BIT) - writeq(val, priv->regbase + (reg << 1)); - else - writeq(val, priv->regbase + reg); + writeq(val, priv->regbase + (reg << 1)); } static u32 matsu_sd_readl(struct matsu_sd_priv *priv, unsigned int reg) -- 2.16.2