diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-20 13:13:16 +0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-06 22:55:06 +0400 |
commit | 4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba (patch) | |
tree | 456810ba1da54f3910c3f034042232816e9967c0 /drivers/mmc/core | |
parent | e3af31c6c61fd036af459e5d3c1260a6cbb7810e (diff) | |
download | linux-4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba.tar.xz |
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 <sachin.kamat@linaro.org>
Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/core')
-rw-r--r-- | drivers/mmc/core/sdio_bus.c | 3 |
1 files changed, 1 insertions, 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); } |