summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-11-20 14:43:16 +0530
committerChris Ball <cjb@laptop.org>2012-12-06 13:55:06 -0500
commit4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba (patch)
tree456810ba1da54f3910c3f034042232816e9967c0
parente3af31c6c61fd036af459e5d3c1260a6cbb7810e (diff)
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>
-rw-r--r--drivers/mmc/core/sdio_bus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c
index fc2d94a3b60c..5e57048e2c1d 100644
--- a/drivers/mmc/core/sdio_bus.c
+++ b/drivers/mmc/core/sdio_bus.c
@@ -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);
}