diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-20 14:43:16 +0530 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-06 13:55:06 -0500 |
commit | 4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba (patch) | |
tree | 456810ba1da54f3910c3f034042232816e9967c0 /drivers/mmc/core | |
parent | e3af31c6c61fd036af459e5d3c1260a6cbb7810e (diff) | |
download | op-kernel-dev-4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba.zip op-kernel-dev-4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba.tar.gz |
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 fc2d94a..5e57048 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); } |