diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-20 10:13:17 +0100 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-06 19:55:07 +0100 |
commit | 8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda (patch) | |
tree | fe5cbc596d5b17999498f026a5c47d5591f8321d /drivers/mmc/core | |
parent | mmc: Remove redundant null check before kfree in sdio_bus.c (diff) | |
download | linux-8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda.tar.xz linux-8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda.zip |
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.c | 3 |
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); } |