From patchwork Fri Sep 22 15:00:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Github ODP bot X-Patchwork-Id: 114058 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp3399617qgf; Fri, 22 Sep 2017 08:03:42 -0700 (PDT) X-Google-Smtp-Source: AOwi7QBjf05InTIisvnImdXcjn1kqT1FOsRG7LABYbtjfwzAr60pJDbdjEODKEfqMLC4hmsvNcqK X-Received: by 10.37.186.146 with SMTP id s18mr3882846ybg.153.1506092622577; Fri, 22 Sep 2017 08:03:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1506092622; cv=none; d=google.com; s=arc-20160816; b=Bsg8tLXyNNyhTQ4pGPMlOQcehx0ZzPKWEs/dvb+3t2tqV9WbDyai4wkteEfmX9Y013 bC70dWg/pJkUtFPi1IOsi4qMpmXHEZE5inWSi/0wWoV4ogkpzEd8eozt3XvuVP9xdIl3 VJX9FWORpn7bv+3a3ipOnnm5QIBPm9PUVVxwPlY9a+thOWGg+/gsVvME75QjrDBf8y2P aQdpnMYnaTX4rnhXQ/W/dP368KPZXaNpPy1qwudd3SVhEI93jKpUpqo2ty1XL70pdMZW fXaw4q/VwTRFR3GyDjjo4APHMyqshP1qGfMb0qsElJHcFm1kLF9XqO0J8IBiY9wuvVPF 0bVA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:github-pr-num :references:in-reply-to:message-id:date:to:from:delivered-to :arc-authentication-results; bh=ZhbG2OWyw5royETuk3ASXNNZaxV3xzCu3cRUiRL8mm8=; b=ytwMf3k1RA9Q3Rzyl38KcL7M/XLOPbtEfPxvi6hiYXA3shNY0Vc6ZDLCVM9Ck0diBr hHn5MuqX+Zz0+K4WrTiTaQQizHMjrTvRkUbexyuxZEKIM+s4aoB8JjUukKgdDAM/G4oS WeXV+H1LyejZcn6Od25ZgwGEqU5DrN2W7S51nVahuOnZKwPdB1AXMCiWPheL3AOi6ITX YpVC/LN/X94M84juerogDpA3FKHcS3seT0xTJ1HspWbZNf2jbLBQNX8alURsUm3Y+k+f +3pZGsZX1HXsUn7nIwROweQZvqlfE3A6HEIGfU25mfPCWr9fi27V6nYtnWYGtEi4+Yaj jZDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id x189si16384qke.336.2017.09.22.08.03.36; Fri, 22 Sep 2017 08:03:42 -0700 (PDT) Received-SPF: pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) client-ip=54.225.227.206; Authentication-Results: mx.google.com; spf=pass (google.com: domain of lng-odp-bounces@lists.linaro.org designates 54.225.227.206 as permitted sender) smtp.mailfrom=lng-odp-bounces@lists.linaro.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=yandex.ru Received: by lists.linaro.org (Postfix, from userid 109) id 770C060902; Fri, 22 Sep 2017 15:03:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252 X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_LOW,URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from [127.0.0.1] (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id BDA4B60A08; Fri, 22 Sep 2017 15:01:15 +0000 (UTC) X-Original-To: lng-odp@lists.linaro.org Delivered-To: lng-odp@lists.linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id BF4E460988; Fri, 22 Sep 2017 15:00:59 +0000 (UTC) Received: from forward101o.mail.yandex.net (forward101o.mail.yandex.net [37.140.190.181]) by lists.linaro.org (Postfix) with ESMTPS id 2F4EC60974 for ; Fri, 22 Sep 2017 15:00:45 +0000 (UTC) Received: from mxback8g.mail.yandex.net (mxback8g.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:169]) by forward101o.mail.yandex.net (Yandex) with ESMTP id B79D213442D2 for ; Fri, 22 Sep 2017 18:00:43 +0300 (MSK) Received: from smtp2p.mail.yandex.net (smtp2p.mail.yandex.net [2a02:6b8:0:1472:2741:0:8b6:7]) by mxback8g.mail.yandex.net (nwsmtp/Yandex) with ESMTP id PMGbSwQhJr-0hZSklOc; Fri, 22 Sep 2017 18:00:43 +0300 Received: by smtp2p.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id oL55wxV1gc-0hVacm5h; Fri, 22 Sep 2017 18:00:43 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (Client certificate not present) From: Github ODP bot To: lng-odp@lists.linaro.org Date: Fri, 22 Sep 2017 18:00:37 +0300 Message-Id: <1506092438-26151-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1506092438-26151-1-git-send-email-odpbot@yandex.ru> References: <1506092438-26151-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 180 Subject: [lng-odp] [PATCH v3 1/2] linux-generic: packet: correct syntax issue X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: "The OpenDataPlane \(ODP\) List" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" From: Bill Fischofer Not sure how this got by checkpatch originally, but clean up syntax associated with this code. Signed-off-by: Bill Fischofer --- /** 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 --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); - - } } }