mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-04-15 10:51:31 +00:00
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>
This commit is contained in:
parent
cd2bf4846c
commit
74c32ef58d
1 changed files with 1 additions and 2 deletions
|
@ -588,13 +588,12 @@ static struct mmc_config sh_mmcif_cfg = {
|
||||||
|
|
||||||
int mmcif_mmc_init(void)
|
int mmcif_mmc_init(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
|
||||||
struct mmc *mmc;
|
struct mmc *mmc;
|
||||||
struct sh_mmcif_host *host = NULL;
|
struct sh_mmcif_host *host = NULL;
|
||||||
|
|
||||||
host = malloc(sizeof(struct sh_mmcif_host));
|
host = malloc(sizeof(struct sh_mmcif_host));
|
||||||
if (!host)
|
if (!host)
|
||||||
ret = -ENOMEM;
|
return -ENOMEM;
|
||||||
memset(host, 0, sizeof(*host));
|
memset(host, 0, sizeof(*host));
|
||||||
|
|
||||||
host->regs = (struct sh_mmcif_regs *)CONFIG_SH_MMCIF_ADDR;
|
host->regs = (struct sh_mmcif_regs *)CONFIG_SH_MMCIF_ADDR;
|
||||||
|
|
Loading…
Add table
Reference in a new issue