]> granicus.if.org Git - openssl/commitdiff
Remove else after a return in packet code
authorMatt Caswell <matt@openssl.org>
Mon, 12 Sep 2016 08:41:01 +0000 (09:41 +0100)
committerMatt Caswell <matt@openssl.org>
Tue, 13 Sep 2016 08:41:21 +0000 (09:41 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/packet.c

index 7d37e4db79d807c196aa2cab980f3d4246c7da1c..b8d1ec2c5c2512639e161d5a11a9877bab0ca104 100644 (file)
@@ -45,8 +45,8 @@ static size_t maxmaxsize(size_t lenbytes)
 {
     if (lenbytes >= sizeof(size_t) || lenbytes == 0)
         return SIZE_MAX;
-    else
-        return ((size_t)1 << (lenbytes * 8)) - 1 + lenbytes;
+
+    return ((size_t)1 << (lenbytes * 8)) - 1 + lenbytes;
 }
 
 int WPACKET_init_len(WPACKET *pkt, BUF_MEM *buf, size_t lenbytes)