Skip to content
Snippets Groups Projects
Commit 74c32ef5 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Pantelis Antoniou
Browse files

mmc: sh_mmcif: Fix warning by unused variable

parent cd2bf484
No related branches found
No related tags found
No related merge requests found
...@@ -588,13 +588,12 @@ static struct mmc_config sh_mmcif_cfg = { ...@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment