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:
531f67b
)
perf tools: remove redundant checks from _sort__sym_cmp
author
Sasha Levin
<
[email protected]
>
Thu, 20 Dec 2012 19:11:20 +0000
(14:11 -0500)
committer
Arnaldo Carvalho de Melo
<
[email protected]
>
Thu, 24 Jan 2013 19:40:14 +0000
(16:40 -0300)
We already check that sym_l and sum_r are non-NULLs, no need to do it
twice.
Signed-off-by: Sasha Levin <
[email protected]
>
Acked-by: Namhyung Kim <
[email protected]
>
Cc: Ingo Molnar <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Paul Mackerras <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Stephane Eranian <
[email protected]
>
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <
[email protected]
>
tools/perf/util/sort.c
patch
|
blob
|
history
diff --git
a/tools/perf/util/sort.c
b/tools/perf/util/sort.c
index cfd1c0feb32d7da84d0b8b73b81883729fa623df..dbaded90312c94e25f50252ab9eed334b46592eb 100644
(file)
--- a/
tools/perf/util/sort.c
+++ b/
tools/perf/util/sort.c
@@
-143,10
+143,8
@@
static int64_t _sort__sym_cmp(struct symbol *sym_l, struct symbol *sym_r,
if (sym_l == sym_r)
return 0;
- if (sym_l)
- ip_l = sym_l->start;
- if (sym_r)
- ip_r = sym_r->start;
+ ip_l = sym_l->start;
+ ip_r = sym_r->start;
return (int64_t)(ip_r - ip_l);
}