projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3af31c
)
mmc: Remove redundant null check before kfree in sdio_bus.c
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 20 Nov 2012 09:13:16 +0000
(14:43 +0530)
committer
Chris Ball
<cjb@laptop.org>
Thu, 6 Dec 2012 18:55:06 +0000
(13:55 -0500)
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>
drivers/mmc/core/sdio_bus.c
patch
|
blob
|
history
diff --git
a/drivers/mmc/core/sdio_bus.c
b/drivers/mmc/core/sdio_bus.c
index fc2d94a3b60ca4c0fc9e062389c524c00394db0a..5e57048e2c1d2c0fbb202600f9bfa45ffa0355c4 100644
(file)
--- 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);
}