samples: userspace: remove unwanted check

No need to check if array elements are less
than 0 as they are of type unsigned char.

Signed-off-by: Niranjhana N <niranjhana.n@intel.com>
This commit is contained in:
Niranjhana N 2018-10-31 11:06:33 +05:30 committed by Anas Nashif
commit 709bc8ae0d

View file

@ -107,7 +107,7 @@ int calc_rev_wheel(BYTE *wheel, BYTE *backpath)
int i;
for (i = 0; i < WHEEL_SIZE; i++) {
if (wheel[i] >= WHEEL_SIZE || wheel[i] < 0) {
if (wheel[i] >= WHEEL_SIZE) {
return -1;
}
backpath[wheel[i]] = i;