diff options
author | Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com> | 2014-03-31 14:54:29 +0900 |
---|---|---|
committer | Pantelis Antoniou <panto@antoniou-consulting.com> | 2014-04-02 12:55:48 +0300 |
commit | 74c32ef58dbcc204af03f5d7188b5cea3959974c (patch) | |
tree | 8ce9cbc05af52123359b36dff94e08977e4affcf | |
parent | cd2bf4846c36a225bfffdedda50e5e80c8b2857f (diff) | |
download | u-boot-imx-74c32ef58dbcc204af03f5d7188b5cea3959974c.zip u-boot-imx-74c32ef58dbcc204af03f5d7188b5cea3959974c.tar.gz u-boot-imx-74c32ef58dbcc204af03f5d7188b5cea3959974c.tar.bz2 |
mmc: sh_mmcif: Fix warning by unused variable
Signed-off-by: Nobuhiro Iwamatsu <nobuhiro.iwamatsu.yj@renesas.com>
Reported-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
Acked-by: Pantelis Antoniou <panto@antoniou-consulting.com>
-rw-r--r-- | drivers/mmc/sh_mmcif.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/sh_mmcif.c b/drivers/mmc/sh_mmcif.c index ad5b23c..ed83a14 100644 --- a/drivers/mmc/sh_mmcif.c +++ b/drivers/mmc/sh_mmcif.c @@ -588,13 +588,12 @@ static struct mmc_config sh_mmcif_cfg = { int mmcif_mmc_init(void) { - int ret = 0; struct mmc *mmc; struct sh_mmcif_host *host = NULL; host = malloc(sizeof(struct sh_mmcif_host)); if (!host) - ret = -ENOMEM; + return -ENOMEM; memset(host, 0, sizeof(*host)); host->regs = (struct sh_mmcif_regs *)CONFIG_SH_MMCIF_ADDR; |