From ae4d934c53cdc4cc5ec3d4535cd5138fdf9b25cb Mon Sep 17 00:00:00 2001 From: Ondrej Zajicek Date: Tue, 30 May 2023 15:52:01 +0200 Subject: BMP: Minor formatting cleanups Based on patches from Michal Zagorski co-authored with Pawel Maslanka . Thanks! --- proto/bmp/buffer.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'proto/bmp/buffer.c') diff --git a/proto/bmp/buffer.c b/proto/bmp/buffer.c index f471e08a..9e62e468 100644 --- a/proto/bmp/buffer.c +++ b/proto/bmp/buffer.c @@ -15,7 +15,6 @@ bmp_buffer_alloc(pool *ppool, const size_t n) buf.start = mb_alloc(ppool, n); buf.pos = buf.start; buf.end = buf.start + n; - return buf; } @@ -48,11 +47,9 @@ void bmp_put_data(buffer *buf, const void *src, const size_t n) { if (!n) - { return; - } bmp_buffer_need(buf, n); memcpy(buf->pos, src, n); buf->pos += n; -} \ No newline at end of file +} -- cgit v1.2.3