mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
dlm: last element of dlm_local_addr[] never used
The last element of dlm_local_addr[DLM_MAX_ADDR_COUNT] was not used because the loop ended at COUNT - 1. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: David Teigland <[email protected]>
This commit is contained in:
parent
7210cb7a72
commit
1b189b8889
1 changed files with 1 additions and 1 deletions
|
|
@ -1082,7 +1082,7 @@ static void init_local(void)
|
|||
int i;
|
||||
|
||||
dlm_local_count = 0;
|
||||
for (i = 0; i < DLM_MAX_ADDR_COUNT - 1; i++) {
|
||||
for (i = 0; i < DLM_MAX_ADDR_COUNT; i++) {
|
||||
if (dlm_our_addr(&sas, i))
|
||||
break;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue