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 7d37e4d..b8d1ec2 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)