1
0
Fork 0

mmc: Remove redundant null check before kfree in sdio_bus.c

kfree on a null pointer is a no-op.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
hifive-unleashed-5.1
Sachin Kamat 2012-11-20 14:43:16 +05:30 committed by Chris Ball
parent e3af31c6c6
commit 4c42d6cc24
1 changed files with 1 additions and 2 deletions

View File

@ -272,8 +272,7 @@ static void sdio_release_func(struct device *dev)
sdio_free_func_cis(func);
if (func->info)
kfree(func->info);
kfree(func->info);
kfree(func);
}