diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-20 04:13:17 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-06 13:55:07 -0500 |
commit | 8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda (patch) | |
tree | fe5cbc596d5b17999498f026a5c47d5591f8321d /drivers/mmc | |
parent | 4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba (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>
Diffstat (limited to 'drivers/mmc')
-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) | |||
225 | 225 | ||
226 | sdio_free_common_cis(card); | 226 | sdio_free_common_cis(card); |
227 | 227 | ||
228 | if (card->info) | 228 | kfree(card->info); |
229 | kfree(card->info); | ||
230 | 229 | ||
231 | kfree(card); | 230 | kfree(card); |
232 | } | 231 | } |