diff options
-rw-r--r-- | tools/perf/util/sort.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/tools/perf/util/sort.c b/tools/perf/util/sort.c index cfd1c0feb32d..dbaded90312c 100644 --- 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, | |||
143 | if (sym_l == sym_r) | 143 | if (sym_l == sym_r) |
144 | return 0; | 144 | return 0; |
145 | 145 | ||
146 | if (sym_l) | 146 | ip_l = sym_l->start; |
147 | ip_l = sym_l->start; | 147 | ip_r = sym_r->start; |
148 | if (sym_r) | ||
149 | ip_r = sym_r->start; | ||
150 | 148 | ||
151 | return (int64_t)(ip_r - ip_l); | 149 | return (int64_t)(ip_r - ip_l); |
152 | } | 150 | } |