Commit 8db580cc authored by Sachin Kamat's avatar Sachin Kamat Committed by Chris Ball

mmc: Remove redundant null check before kfree in bus.c

kfree on a null pointer is a no-op.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 4c42d6cc
...@@ -225,8 +225,7 @@ static void mmc_release_card(struct device *dev) ...@@ -225,8 +225,7 @@ static void mmc_release_card(struct device *dev)
sdio_free_common_cis(card); sdio_free_common_cis(card);
if (card->info) kfree(card->info);
kfree(card->info);
kfree(card); kfree(card);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment