From 7beb6e4f8938eba7a0af30d74c7424af01deb232 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Wed, 18 Oct 2000 00:24:58 +0000 Subject: [PATCH] minor cleanup --- libraries/liblber/sockbuf.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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; } -- 2.39.5