mmc: do not check argument of free() beforehand

free() checks if its argument in NULL. No need to check it twice.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
Heinrich Schuchardt 2020-09-29 21:48:08 +02:00 committed by Peng Fan
parent 4d6a773b1c
commit 46cb3afd39

View File

@ -784,8 +784,7 @@ int sh_sdhi_init(unsigned long addr, int ch, unsigned long quirks)
return ret;
error:
if (host)
free(host);
free(host);
return ret;
}