projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1e284a
)
[PKT_SCHED]: Fix numeric comparison in meta ematch
author
Thomas Graf
<tgraf@suug.ch>
Wed, 8 Jun 2005 22:11:19 +0000
(15:11 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 8 Jun 2005 22:11:19 +0000
(15:11 -0700)
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>
net/sched/em_meta.c
patch
|
blob
|
blame
|
history
diff --git
a/net/sched/em_meta.c
b/net/sched/em_meta.c
index ed2a46cbb67f23ee3e20f917e233220ad71c52f1..48bb23c2a35a404aa5ef6e94a9160e2b346510ad 100644
(file)
--- 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;