From patchwork Fri Jan 22 18:30:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 60175 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp16843lbb; Fri, 22 Jan 2016 10:30:54 -0800 (PST) X-Received: by 10.140.32.194 with SMTP id h60mr5480016qgh.79.1453487454678; Fri, 22 Jan 2016 10:30:54 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id c51si8344565qgc.0.2016.01.22.10.30.54; Fri, 22 Jan 2016 10:30:54 -0800 (PST) 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; dkim=neutral (body hash did not verify) header.i=@linaro.org Received: by lists.linaro.org (Postfix, from userid 109) id 07489618E0; Fri, 22 Jan 2016 18:30:54 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=kcz8QeyM; dkim-adsp=none (unprotected policy); dkim-atps=neutral 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.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID, 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 0B8CA617AB; Fri, 22 Jan 2016 18:30:50 +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 09884617BD; Fri, 22 Jan 2016 18:30:48 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by lists.linaro.org (Postfix) with ESMTPS id 19EC1617AA for ; Fri, 22 Jan 2016 18:30:47 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id r129so224141403wmr.0 for ; Fri, 22 Jan 2016 10:30:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id; bh=fRD3c7bLg3gKGaQitMpa/BO+QDC+iUiaC20v4eyL+Fs=; b=kcz8QeyMdswXOJ6hAtmjmKywEaa9NJeeAxVv3xIp8BwPdMspLIz1nS87oB+EEJB2AS lUjSqB69qUtruhGGLI+mDBPPlw60QsxlYr3Y9v5inBu62rJ8PT9hEUspubyqCUKn5yp6 WN0bKts1JlC2fguYxTz8imsWUBMqWH4zhjmNM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=fRD3c7bLg3gKGaQitMpa/BO+QDC+iUiaC20v4eyL+Fs=; b=nG6g0GgK4RM8KciV7Qneeq/z8541i5xlE9prN4F7WDJoq5M4fP6e3mkdF1yg8xaUVM +befX6CBfdYnk+jOfAMJP1kwRx1wbECtHGBaOo2/p69nVXaD50rFVS8Y5TJBgaZ3zNby p4dn6bYsC/87HnmPDSxdFu3IwrOTOfabVDWETqbY+XlLoTzLV2NmiDWvc7O1/B5VID5L 0oTNV/zFqhZkAhkCGgRYlPiHrhJc8mQwa61qQ23BHsq9bwqJW+wzEh0I9TQGEGlTLovg UrWmhikPs+mzsG+QgU9rbFB7OpngcikFGEe9/hgtT50xGjbIjO2HpREzbYBs/RNzt5uI jhQw== X-Gm-Message-State: AG10YOQ0p+j4fwNpJXerp7GzRwdJIAzFmfvVxn+mrPq3Jjs5fTQLemeee0wQlg5yFCNWKSs9JqM= X-Received: by 10.28.221.85 with SMTP id u82mr5252552wmg.95.1453487446303; Fri, 22 Jan 2016 10:30:46 -0800 (PST) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::1]) by smtp.gmail.com with ESMTPSA id s8sm7001018wje.35.2016.01.22.10.30.45 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 22 Jan 2016 10:30:45 -0800 (PST) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Fri, 22 Jan 2016 18:30:29 +0000 Message-Id: <1453487429-5348-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [RESEND PATCH] linux-generic: pktio: remove unwanted initialisation 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: , MIME-Version: 1.0 Errors-To: lng-odp-bounces@lists.linaro.org Sender: "lng-odp" Remove an unwanted initialisation and fix a bad indentation which crept in during a merge. Signed-off-by: Stuart Haslam Reviewed-by: Ivan Khoronzhuk --- Added missing s-o-b. platform/linux-generic/pktio/loop.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/linux-generic/pktio/loop.c b/platform/linux-generic/pktio/loop.c index 47745ad..95644c4 100644 --- a/platform/linux-generic/pktio/loop.c +++ b/platform/linux-generic/pktio/loop.c @@ -57,7 +57,6 @@ static int loopback_recv(pktio_entry_t *pktio_entry, odp_packet_t pkts[], odp_packet_hdr_t *pkt_hdr; odp_packet_t pkt; - nbr = 0; qentry = queue_to_qentry(pktio_entry->s.pkt_loop.loopq); nbr = queue_deq_multi(qentry, hdr_tbl, len); @@ -71,7 +70,7 @@ static int loopback_recv(pktio_entry_t *pktio_entry, odp_packet_t pkts[], if (0 > _odp_packet_classifier(pktio_entry, pkt)) pkts[j++] = pkt; } - nbr = j; + nbr = j; } else { for (i = 0; i < nbr; ++i) { pkts[i] = _odp_packet_from_buffer(odp_hdr_to_buf