Commit 98e56405521b74b4826f855d45ef7859f34548ff

Authored by Thomas Graf
Committed by David S. Miller
1 parent e1e284a4bd

[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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -639,9 +639,9 @@
639 639 /* Let gcc optimize it, the unlikely is not really based on
640 640 * some numbers but jump free code for mismatches seems
641 641 * more logical. */
642   - if (unlikely(a == b))
  642 + if (unlikely(a->value == b->value))
643 643 return 0;
644   - else if (a < b)
  644 + else if (a->value < b->value)
645 645 return -1;
646 646 else
647 647 return 1;