ssl.c:wolfSSL_BN_get_word_1(): remove dead logic inadvertently retained.

This commit is contained in:
Daniel Pouzzner
2020-11-26 03:09:55 -06:00
parent f7bf0a78fb
commit 78b2b3ca3b

View File

@ -46760,14 +46760,10 @@ static unsigned long wolfSSL_BN_get_word_1(mp_int *mp) {
unsigned long ret = 0UL;
int digit_i;
if ((unsigned long)DIGIT_BIT == (sizeof(unsigned long) * 8UL))
return (unsigned long)mp->dp[0];
else {
for (digit_i = 0; digit_i < mp->used; ++digit_i) {
ret <<= (unsigned long)DIGIT_BIT;
ret |= (unsigned long)mp->dp[digit_i];
}
}
return ret;
#endif