Message ID | 1353402797-6785-2-git-send-email-sachin.kamat@linaro.org |
---|---|
State | Accepted |
Headers | show |
diff --git a/drivers/mmc/core/bus.c b/drivers/mmc/core/bus.c index 9b68933..420cb67 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); }
kfree on a null pointer is a no-op. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> --- drivers/mmc/core/bus.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)