projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
net/mlx4_core: Fix struct mlx4_vhcr_cmd to make implicit padding explicit
[cascardo/linux.git]
/
kernel
/
range.c
diff --git
a/kernel/range.c
b/kernel/range.c
index
322ea8e
..
82cfc28
100644
(file)
--- a/
kernel/range.c
+++ b/
kernel/range.c
@@
-113,12
+113,12
@@
static int cmp_range(const void *x1, const void *x2)
{
const struct range *r1 = x1;
const struct range *r2 = x2;
{
const struct range *r1 = x1;
const struct range *r2 = x2;
- s64 start1, start2;
- start1 = r1->start;
- start2 = r2->start;
-
- return start1 - start2;
+ if (r1->start < r2->start)
+ return -1;
+ if (r1->start > r2->start)
+ return 1;
+ return 0;
}
int clean_sort_range(struct range *range, int az)
}
int clean_sort_range(struct range *range, int az)