From: Kurt Zeilenga Date: Wed, 18 Oct 2000 00:24:58 +0000 (+0000) Subject: minor cleanup X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1715 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=7beb6e4f8938eba7a0af30d74c7424af01deb232;p=openldap minor cleanup --- diff --git a/libraries/liblber/sockbuf.c b/libraries/liblber/sockbuf.c index 55e827bf9b..8780dcf6b3 100644 --- a/libraries/liblber/sockbuf.c +++ b/libraries/liblber/sockbuf.c @@ -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; }