From 8db580ccfd3b3aa0f7d800d2db4e8c32e7da2cda Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Tue, 20 Nov 2012 14:43:17 +0530 Subject: [PATCH] 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 --- drivers/mmc/core/bus.c | 3 +-- 1 file changed, 1 insertion(+), 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); } -- 2.30.2