lib/randutils: remove superfluous continue

Addresses: fa94979207 (commitcomment-24678670)
Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
Karel Zak 2017-10-02 11:27:59 +02:00
parent a1a41597bf
commit 43dc893449
1 changed files with 3 additions and 6 deletions

View File

@ -109,13 +109,10 @@ void random_get_bytes(void *buf, size_t nbytes)
n -= x;
cp += x;
lose_counter = 0;
} else if (errno == ENOSYS) { /* kernel without getrandom() */
} else if (errno == ENOSYS) /* kernel without getrandom() */
break;
else if (lose_counter++ > 16) /* entropy problem? */
break;
} else {
if (lose_counter++ > 16) /* entropy problem? */
break;
continue;
}
}
if (errno == ENOSYS)