GH616: Remove dead code
authorRich Salz <rsalz@akamai.com>
Sat, 5 Mar 2016 06:00:50 +0000 (01:00 -0500)
committerRich Salz <rsalz@openssl.org>
Sat, 5 Mar 2016 18:45:40 +0000 (13:45 -0500)
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Emilia Käsper <emilia@openssl.org>
crypto/ec/ec_mult.c

index 7e1418cf809f96b28209978ddb19900c4921b69d..70c9791f8bc35121f3ac569698309fa9f3bfab05 100644 (file)
@@ -320,8 +320,6 @@ int ec_wNAF_mul(const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar,
                 wNAF[num] = tmp_wNAF;
                 wNAF[num + 1] = NULL;
                 wNAF_len[num] = tmp_len;
-                if (tmp_len > max_len)
-                    max_len = tmp_len;
                 /*
                  * pre_comp->points starts with the points that we need here:
                  */