diff mbox series

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

Message ID 1507993210-15088-2-git-send-email-odpbot@yandex.ru
State New
Headers show
Series [v5,1/2] linux-generic: packet: correct syntax issue | expand

Commit Message

Github ODP bot Oct. 14, 2017, 3 p.m. UTC
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: ae4f1d82ed704992c1d8284c23795b9e076b33b9
 ** Merge commit sha: 75ccc68f61089fffbf834b8dacd952c887b70ff8
 **/
 platform/linux-generic/odp_packet.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
diff mbox series

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);
-
-		}
 	}
 }