Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 98e56405 authored by Thomas Graf's avatar Thomas Graf Committed by David S. Miller
Browse files

[PKT_SCHED]: Fix numeric comparison in meta ematch



This patch is brought to you by the department of applied stupidity.

Signed-off-by: default avatarThomas Graf <tgraf@suug.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e1e284a4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;