summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-11-20 14:43:17 +0530
committerChris Ball <cjb@laptop.org>2012-12-06 13:55:07 -0500
commit8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda (patch)
treefe5cbc596d5b17999498f026a5c47d5591f8321d
parent4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba (diff)
mmc: Remove redundant null check before kfree in 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/bus.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c
index 9b68933f27e..420cb6753c1 100644
--- a/drivers/mmc/core/bus.c
+++ b/drivers/mmc/core/bus.c
@@ -225,8 +225,7 @@ static void mmc_release_card(struct device *dev)
sdio_free_common_cis(card);
- if (card->info)
- kfree(card->info);
+ kfree(card->info);
kfree(card);
}