From: Sachin Kamat Date: Tue, 20 Nov 2012 09:13:16 +0000 (+0530) Subject: mmc: Remove redundant null check before kfree in sdio_bus.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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); }