diff options
author | Thomas Graf <tgraf@suug.ch> | 2005-06-09 00:11:19 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-06-09 00:11:19 +0200 |
commit | 98e56405521b74b4826f855d45ef7859f34548ff (patch) | |
tree | dbd9b7ac68a916f665c8d59f996913bfdf7bb07a /net | |
parent | [PKT_SCHED]: Dump classification result for basic classifier (diff) | |
download | linux-98e56405521b74b4826f855d45ef7859f34548ff.tar.xz linux-98e56405521b74b4826f855d45ef7859f34548ff.zip |
[PKT_SCHED]: Fix numeric comparison in meta ematch
This patch is brought to you by the department of applied stupidity.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r-- | net/sched/em_meta.c | 4 |
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) /* Let gcc optimize it, the unlikely is not really based on * some numbers but jump free code for mismatches seems * more logical. */ - if (unlikely(a == b)) + if (unlikely(a->value == b->value)) return 0; - else if (a < b) + else if (a->value < b->value) return -1; else return 1; |