summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorAnatolij Gustschin <agust@denx.de>2011-12-07 11:47:48 +0000
committerAndy Fleming <afleming@freescale.com>2012-01-08 21:28:16 -0600
commitbfe6f6235fdfa130ad8c5a8898ef4d3a37bcad8c (patch)
treefd347658cc0af75645a7001441e568592d2f4cd3 /drivers
parent31cb6db5dbdc07673b816074af433bceeea1de5a (diff)
downloadu-boot-imx-bfe6f6235fdfa130ad8c5a8898ef4d3a37bcad8c.zip
u-boot-imx-bfe6f6235fdfa130ad8c5a8898ef4d3a37bcad8c.tar.gz
u-boot-imx-bfe6f6235fdfa130ad8c5a8898ef4d3a37bcad8c.tar.bz2
drivers/mmc/mv_sdhci.c: Fix build warning
Fix: mv_sdhci.c: In function 'mv_sdh_init': mv_sdhci.c:47:22: warning: the comparison will always evaluate as 'true' for the address of 'mv_sdhci_writeb' will never be NULL [-Waddress] Signed-off-by: Anatolij Gustschin <agust@denx.de> Cc: Lei Wen <leiwen@marvell.com> Cc: Andy Fleming <afleming@freescale.com> Acked-by: Lei Wen <leiwen@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/mv_sdhci.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c
index 1501974..2fe34b6 100644
--- a/drivers/mmc/mv_sdhci.c
+++ b/drivers/mmc/mv_sdhci.c
@@ -44,8 +44,7 @@ int mv_sdh_init(u32 regbase, u32 max_clk, u32 min_clk, u32 quirks)
host->quirks = quirks;
#ifdef CONFIG_MMC_SDHCI_IO_ACCESSORS
memset(&mv_ops, 0, sizeof(struct sdhci_ops));
- if (mv_sdhci_writeb != NULL)
- mv_ops.write_b = mv_sdhci_writeb;
+ mv_ops.write_b = mv_sdhci_writeb;
host->ops = &mv_ops;
#endif
if (quirks & SDHCI_QUIRK_REG32_RW)