diff mbox series

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

Message ID 1506092438-26151-2-git-send-email-odpbot@yandex.ru
State Superseded
Headers show
Series [v3,1/2] linux-generic: packet: correct syntax issue | expand

Commit Message

Github ODP bot Sept. 22, 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: c2ed3f71a8d61449c5e35ce201f020a74a8ea244
 ** Merge commit sha: 3f5a1162ab09ace4e127eb630fcce86c84f6d9d1
 **/
 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);
-
-		}
 	}
 }