aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/sched/em_meta.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sched/em_meta.c b/net/sched/em_meta.c
index ed2a46cbb67f..48bb23c2a35a 100644
--- a/net/sched/em_meta.c
+++ b/net/sched/em_meta.c
@@ -639,9 +639,9 @@ static int meta_int_compare(struct meta_obj *a, struct meta_obj *b)
639 /* Let gcc optimize it, the unlikely is not really based on 639 /* Let gcc optimize it, the unlikely is not really based on
640 * some numbers but jump free code for mismatches seems 640 * some numbers but jump free code for mismatches seems
641 * more logical. */ 641 * more logical. */
642 if (unlikely(a == b)) 642 if (unlikely(a->value == b->value))
643 return 0; 643 return 0;
644 else if (a < b) 644 else if (a->value < b->value)
645 return -1; 645 return -1;
646 else 646 else
647 return 1; 647 return 1;