diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-11-20 04:13:16 -0500 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-12-06 13:55:06 -0500 |
commit | 4c42d6cc245e8d41eb83c724cf38cdb9342ea5ba (patch) | |
tree | 456810ba1da54f3910c3f034042232816e9967c0 /drivers/mmc/core | |
parent | e3af31c6c61fd036af459e5d3c1260a6cbb7810e (diff) |
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) | |||
272 | 272 | ||
273 | sdio_free_func_cis(func); | 273 | sdio_free_func_cis(func); |
274 | 274 | ||
275 | if (func->info) | 275 | kfree(func->info); |
276 | kfree(func->info); | ||
277 | 276 | ||
278 | kfree(func); | 277 | kfree(func); |
279 | } | 278 | } |