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:
parent
ca66c8ea41
commit
709bc8ae0d
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue