Skip to content

Commit

Permalink
Coverity tool reported error fix (ARMmbed#1776)
Browse files Browse the repository at this point in the history
CID 270644 fixed.
  • Loading branch information
deepakvenugopal authored Aug 7, 2018
1 parent b063457 commit 40efd39
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Service_Libs/fhss/channel_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,13 @@ static uint16_t tr51_calc_nearest_prime_number(uint16_t start_value)
while (start_value) {
if (start_value % divider--) {
if (divider == 1) {
return start_value;
break;
}
} else {
divider = ++start_value - 1;
}
}
return 0;
return start_value;
}

static void tr51_seed_rand(uint32_t seed)
Expand Down

0 comments on commit 40efd39

Please sign in to comment.