From: Sachin Kamat Date: Tue, 20 Nov 2012 09:13:17 +0000 (+0530) Subject: mmc: Remove redundant null check before kfree in bus.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mmc: Remove redundant null check before kfree in bus.c kfree on a null pointer is a no-op. Signed-off-by: Sachin Kamat Signed-off-by: Chris Ball --- 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); }