From 4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba Mon Sep 17 00:00:00 2001 From: Sachin Kamat Date: Tue, 20 Nov 2012 14:43:16 +0530 Subject: [PATCH] mmc: Remove redundant null check before kfree in sdio_bus.c kfree on a null pointer is a no-op. Signed-off-by: Sachin Kamat Signed-off-by: Chris Ball --- drivers/mmc/core/sdio_bus.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mmc/core/sdio_bus.c b/drivers/mmc/core/sdio_bus.c index fc2d94a3b60c..5e57048e2c1d 100644 --- a/drivers/mmc/core/sdio_bus.c +++ b/drivers/mmc/core/sdio_bus.c @@ -272,8 +272,7 @@ static void sdio_release_func(struct device *dev) sdio_free_func_cis(func); - if (func->info) - kfree(func->info); + kfree(func->info); kfree(func); } -- 2.20.1