summaryrefslogtreecommitdiff
path: root/drivers/mmc/core
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-11-20 13:13:17 +0400
committerChris Ball <cjb@laptop.org>2012-12-06 22:55:07 +0400
commit8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda (patch)
treefe5cbc596d5b17999498f026a5c47d5591f8321d /drivers/mmc/core
parent4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba (diff)
downloadlinux-8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda.tar.xz
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>
Diffstat (limited to 'drivers/mmc/core')
-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 9b68933f27e7..420cb6753c1e 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);
}