Fix some style issues from libssl size_tify review

Reviewed-by: Rich Salz <rsalz@openssl.org>
diff --git a/ssl/packet_locl.h b/ssl/packet_locl.h
index ec31a33..94933c1 100644
--- a/ssl/packet_locl.h
+++ b/ssl/packet_locl.h
@@ -164,9 +164,8 @@
 __owur static ossl_inline int PACKET_get_net_2_len(PACKET *pkt, size_t *data)
 {
     unsigned int i;
-    int ret;
+    int ret = PACKET_get_net_2(pkt, &i);
 
-    ret = PACKET_get_net_2(pkt, &i);
     if (ret)
         *data = (size_t)i;
 
@@ -206,9 +205,8 @@
 __owur static ossl_inline int PACKET_get_net_3_len(PACKET *pkt, size_t *data)
 {
     unsigned long i;
-    int ret;
+    int ret = PACKET_get_net_3(pkt, &i);
 
-    ret = PACKET_get_net_3(pkt, &i);
     if (ret)
         *data = (size_t)i;
 
@@ -249,9 +247,8 @@
 __owur static ossl_inline int PACKET_get_net_4_len(PACKET *pkt, size_t *data)
 {
     unsigned long i;
-    int ret;
+    int ret = PACKET_get_net_4(pkt, &i);
 
-    ret = PACKET_get_net_4(pkt, &i);
     if (ret)
         *data = (size_t)i;
 
@@ -285,9 +282,8 @@
 __owur static ossl_inline int PACKET_get_1_len(PACKET *pkt, size_t *data)
 {
     unsigned int i;
-    int ret;
+    int ret = PACKET_get_1(pkt, &i);
 
-    ret = PACKET_get_1(pkt, &i);
     if (ret)
         *data = (size_t)i;
 
diff --git a/ssl/record/rec_layer_s3.c b/ssl/record/rec_layer_s3.c
index a20bc3e..779a29f 100644
--- a/ssl/record/rec_layer_s3.c
+++ b/ssl/record/rec_layer_s3.c
@@ -276,7 +276,7 @@
 
     /* else we need to read more data */
 
-    if (n > (rb->len - rb->offset)) { /* does not happen */
+    if (n > rb->len - rb->offset) { /* does not happen */
         SSLerr(SSL_F_SSL3_READ_N, ERR_R_INTERNAL_ERROR);
         return -1;
     }
@@ -288,7 +288,7 @@
     else {
         if (max < n)
             max = n;
-        if (max > (rb->len - rb->offset))
+        if (max > rb->len - rb->offset)
             max = rb->len - rb->offset;
     }
 
@@ -610,7 +610,7 @@
             return i;
         }
 
-        if ((tmpwrit == n) ||
+        if (tmpwrit == n ||
             (type == SSL3_RT_APPLICATION_DATA &&
              (s->mode & SSL_MODE_ENABLE_PARTIAL_WRITE))) {
             /*