From: Pauli Date: Thu, 11 May 2017 00:45:38 +0000 (+1000) Subject: Remove dead code. X-Git-Tag: OpenSSL_1_1_1-pre1~1530 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f97052392cb10fca5309212bf720685262ad4a6;p=openssl Remove dead code. The second BN_is_zero test can never be true. Reviewed-by: Andy Polyakov Reviewed-by: Richard Levitte Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/3434) --- diff --git a/crypto/bn/bn_print.c b/crypto/bn/bn_print.c index a16bde862c..821676067b 100644 --- a/crypto/bn/bn_print.c +++ b/crypto/bn/bn_print.c @@ -33,8 +33,6 @@ char *BN_bn2hex(const BIGNUM *a) p = buf; if (a->neg) *(p++) = '-'; - if (BN_is_zero(a)) - *(p++) = '0'; for (i = a->top - 1; i >= 0; i--) { for (j = BN_BITS2 - 8; j >= 0; j -= 8) { /* strip leading zeros */