From aef3d2cb87c0151243ad63998946f3c21414dc29 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Tue, 30 Aug 2016 21:08:12 +0200 Subject: [PATCH] Minor coding style fix in pbuf.c --- src/core/pbuf.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core/pbuf.c b/src/core/pbuf.c index c290e492..c7b8812d 100644 --- a/src/core/pbuf.c +++ b/src/core/pbuf.c @@ -982,8 +982,9 @@ pbuf_copy_partial(struct pbuf *buf, void *dataptr, u16_t len, u16_t offset) } else { /* copy from this buffer. maybe only partially. */ buf_copy_len = p->len - offset; - if (buf_copy_len > len) - buf_copy_len = len; + if (buf_copy_len > len) { + buf_copy_len = len; + } /* copy the necessary parts of the buffer */ MEMCPY(&((char*)dataptr)[left], &((char*)p->payload)[offset], buf_copy_len); copied_total += buf_copy_len;