diff mbox series

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

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

Commit Message

Github ODP bot Sept. 18, 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: e1c46f8e296a730ed27141a33189185bb7dfd1b1
 ** Merge commit sha: 8f6cbdeb075be6d397a255d8791d88a492b9d2db
 **/
 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);
-
-		}
 	}
 }