]> git.sur5r.net Git - openldap/commitdiff
minor cleanup
authorKurt Zeilenga <kurt@openldap.org>
Wed, 18 Oct 2000 00:24:58 +0000 (00:24 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 18 Oct 2000 00:24:58 +0000 (00:24 +0000)
libraries/liblber/sockbuf.c

index 55e827bf9b8d0f233d4b5d3b83dd2518ce8d86c5..8780dcf6b3bb950baef8b5b73e954be00bac7cc9 100644 (file)
@@ -211,17 +211,15 @@ ber_pvt_sb_grow_buffer( Sockbuf_Buf *buf, ber_len_t minsize )
        assert( buf != NULL );
 
        for ( pw = MIN_BUFF_SIZE; pw < minsize; pw <<= 1 ) {
-               if (pw > MAX_BUFF_SIZE)
-      return -1;
-   }
+               if (pw > MAX_BUFF_SIZE) return -1;
+       }
 
        if ( buf->buf_size < pw ) {
                p = LBER_REALLOC( buf->buf_base, pw );
-               if ( p == NULL )
-                       return -1;
+               if ( p == NULL ) return -1;
                buf->buf_base = p;
                buf->buf_size = pw;
-   }
+       }
        return 0;
 }