projects
/
platform
/
core
/
system
/
pass.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
635089a
)
pass: resmon: Remove unnecessary check in exit
34/222034/1
author
Seung-Woo Kim
<sw0312.kim@samsung.com>
Thu, 9 Jan 2020 07:37:46 +0000
(16:37 +0900)
committer
Seung-Woo Kim
<sw0312.kim@samsung.com>
Thu, 9 Jan 2020 07:39:08 +0000
(16:39 +0900)
After monitor->result is null-checked and it is re-checked.
Remove the unnecessary check routine in resmon_cpuhp_exit().
Change-Id: I345a497fa67ba4ee0334c24327d2f7ea74dd7996
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
src/pass/pass-resmon-source.c
patch
|
blob
|
history
diff --git
a/src/pass/pass-resmon-source.c
b/src/pass/pass-resmon-source.c
index 40da8838f1a428f53652e1ba5bc2bf2385cbbdca..6ea9e7192378b75da785f7ed085d830108829a5b 100644
(file)
--- a/
src/pass/pass-resmon-source.c
+++ b/
src/pass/pass-resmon-source.c
@@
-224,8
+224,6
@@
static int resmon_cpuhp_exit(struct resmon *monitor)
return 0;
result = (struct resmon_result_src_cpuhp *)monitor->result;
- if (!result)
- return -ENOMEM;
for (i = 0; i < RESMON_SRC_CPUHP_COUNT; i++) {
if (result[i].load) {