projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fef9fc
)
PM / Clocks: Remove redundant NULL checks before kfree()
author
Jonghwan Choi
<jhbird.choi@samsung.com>
Fri, 21 Oct 2011 22:22:54 +0000
(
00:22
+0200)
committer
Rafael J. Wysocki
<rjw@sisk.pl>
Fri, 21 Oct 2011 22:22:54 +0000
(
00:22
+0200)
Since kfree() checks it its argument is not NULL, it is not necessary
to duplicate this check in __pm_clk_remove().
[rjw: Added the changelog.]
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/clock_ops.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/base/power/clock_ops.c
b/drivers/base/power/clock_ops.c
index b876e60a53efa438e3b374955e181f279c82c07e..5f0f85d5c5765558a25fa7ec165be968e5fbcabf 100644
(file)
--- a/
drivers/base/power/clock_ops.c
+++ b/
drivers/base/power/clock_ops.c
@@
-104,9
+104,7
@@
static void __pm_clk_remove(struct pm_clock_entry *ce)
clk_put(ce->clk);
}
- if (ce->con_id)
- kfree(ce->con_id);
-
+ kfree(ce->con_id);
kfree(ce);
}