Initial INC MR3 commit with EVO/BRAVO included and majority of the compile warnings ...
/kernel/groups.c
blob:2b45b2ee3964f47b6470a791d366842e8437048e -> blob:f0c2528f56fe4770f316a6450da05237c2915601
--- kernel/groups.c
+++ kernel/groups.c
@@ -143,10 +143,9 @@ int groups_search(const struct group_inf
right = group_info->ngroups;
while (left < right) {
unsigned int mid = (left+right)/2;
- int cmp = grp - GROUP_AT(group_info, mid);
- if (cmp > 0)
+ if (grp > GROUP_AT(group_info, mid))
left = mid + 1;
- else if (cmp < 0)
+ else if (grp < GROUP_AT(group_info, mid))
right = mid;
else
return 1;