[v4,1/2] linux-generic: packet: correct syntax issue

Message ID 1507564818-31998-2-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series
  • Pkt debug
Related show

Commit Message

Github ODP bot Oct. 9, 2017, 4 p.m.
From: Bill Fischofer <bill.fischofer@linaro.org>


Not sure how this got by checkpatch originally, but clean up syntax
associated with this code.

Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>

---
/** Email created from pull request 180 (Bill-Fischofer-Linaro:pkt-debug)
 ** https://github.com/Linaro/odp/pull/180
 ** Patch: https://github.com/Linaro/odp/pull/180.patch
 ** Base sha: c16af6486eea240609f334b1bdc81a11404275de
 ** Merge commit sha: 02c568dd05ef6e800819dd30516c1dc8016d268c
 **/
 platform/linux-generic/odp_packet.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch

diff --git a/platform/linux-generic/odp_packet.c b/platform/linux-generic/odp_packet.c
index f4a0e0ec9..a3fd0559f 100644
--- a/platform/linux-generic/odp_packet.c
+++ b/platform/linux-generic/odp_packet.c
@@ -389,10 +389,8 @@  static inline void init_segments(odp_packet_hdr_t *pkt_hdr[], int num)
 		hdr->buf_hdr.next_seg = NULL;
 		hdr->buf_hdr.last_seg = &hdr->buf_hdr;
 
-		if (odp_unlikely(num > 1)) {
+		if (odp_unlikely(num > 1))
 			link_segments(pkt_hdr, num);
-
-		}
 	}
 }