From 759eacc4e522ef4faf30ff569fe3b4363fed8e07 Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Wed, 17 May 2017 10:25:27 +0300 Subject: [PATCH] slist: reverse the slist order in a way that no one will ever notice or care about It bothers me that we are ordering the ->sym pointers in the reverse way from how they should be. It doesn't make any real difference though, it's purely OCD at work. Signed-off-by: Dan Carpenter --- smatch_slist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smatch_slist.c b/smatch_slist.c index 14bd177e..4790b2d3 100644 --- a/smatch_slist.c +++ b/smatch_slist.c @@ -108,9 +108,9 @@ int cmp_tracker(const struct sm_state *a, const struct sm_state *b) return -1; if (!a->sym && b->sym) return 1; - if (a->sym > b->sym) - return -1; if (a->sym < b->sym) + return -1; + if (a->sym > b->sym) return 1; return 0; -- 2.11.4.GIT