From patchwork Mon Sep 18 15:00:07 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: 112928 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp3763992qgf; Mon, 18 Sep 2017 08:00:39 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCmO4EK7W/PW4Iwo5AIfDGxhU7JTq4BbmKvb/uIXaI2enAt0p7T5nF0ld42KLZ793MlxR5G X-Received: by 10.200.55.141 with SMTP id d13mr51253744qtc.89.1505746839874; Mon, 18 Sep 2017 08:00:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505746839; cv=none; d=google.com; s=arc-20160816; b=Y837G0sHZfejUhnFTo9D2o2NikmT1ReTqOsHFFq++g/GmEaTFJChqj/d9Iw4JkcIlp ozF7B7qmK6wFXF38UDbfSy39w3pHga4SiwE0o9lHeLPvhAtLmIUBUFgoCnN88JLfKEuF rdioNbAoscmJDle3D4qYJ6IOkR9QdbLbnG5sq1jOpsXuM6M0bK4xQUFLCiFetrUcyrJI f03cSARYxpPIbVv4BgCX+tr4USKuxy3ZNQKXNAKwX0klyUkRODtsPm8KZmjihJTsAIew /zTUxgj+uOMnxnkQSbRUCe1IFlMYXFlVJFWOmXYugGxSICv4MDrFU3iBP0C/gTuKsMxa DfyQ== 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=NbxpisQfai9Gthl1Gdy5koV8YXY8AXv4mU+6MAONdYQ=; b=ZOO+l/tU4amzSK81+wQUpHb/5nbOC2B2EolMxK8Z4kBzvE8JapjveMpmgCLGcFAP0J YoowwtBMhjyjxGqvF2d41rETj8Ay/Z+WqhREQHVaPfKH2vSeO2VYLNIjdFUiMaAtZ0sW 2S6FJvYPj5ZoNjv0TxTPr4P/s8kqQR7sSgbMVyk97M9+WLWhR+HDWfVcHZt1tOW50zMn feuYB3mbwz0u3rAFkoXcRo/zgZ0t6mrNBNCl4frmyLOFgX8J/AFyHOskaMY7GKKkeekq ZMobWktVrq4mG1G3eEwpZLMbi7u7DREEkpixso5D4ru49jjejSU++Wmebj5NnS1AIbvE n6Bw== 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 i21si7250558qti.429.2017.09.18.08.00.38; Mon, 18 Sep 2017 08:00:39 -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 316AF60DB8; Mon, 18 Sep 2017 15:00:38 +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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,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 1220960D6C; Mon, 18 Sep 2017 15:00:29 +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 6A00960D85; Mon, 18 Sep 2017 15:00:21 +0000 (UTC) Received: from forward102j.mail.yandex.net (forward102j.mail.yandex.net [5.45.198.243]) by lists.linaro.org (Postfix) with ESMTPS id 9515360D7B for ; Mon, 18 Sep 2017 15:00:17 +0000 (UTC) Received: from mxback2j.mail.yandex.net (mxback2j.mail.yandex.net [IPv6:2a02:6b8:0:1619::10b]) by forward102j.mail.yandex.net (Yandex) with ESMTP id 2B64F5603C32 for ; Mon, 18 Sep 2017 18:00:15 +0300 (MSK) Received: from smtp2o.mail.yandex.net (smtp2o.mail.yandex.net [2a02:6b8:0:1a2d::26]) by mxback2j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id l3i07LFM4L-0FcaNbSp; Mon, 18 Sep 2017 18:00:15 +0300 Received: by smtp2o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id I83pQYHSx8-0EYCkJTd; Mon, 18 Sep 2017 18:00:14 +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: Mon, 18 Sep 2017 18:00:07 +0300 Message-Id: <1505746808-26297-2-git-send-email-odpbot@yandex.ru> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1505746808-26297-1-git-send-email-odpbot@yandex.ru> References: <1505746808-26297-1-git-send-email-odpbot@yandex.ru> Github-pr-num: 180 Subject: [lng-odp] [PATCH v2 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: e1c46f8e296a730ed27141a33189185bb7dfd1b1 ** Merge commit sha: 8f6cbdeb075be6d397a255d8791d88a492b9d2db **/ 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); - - } } }