From patchwork Fri Jan 15 15:45:19 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stuart Haslam X-Patchwork-Id: 59872 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp624497lbb; Fri, 15 Jan 2016 07:45:41 -0800 (PST) X-Received: by 10.140.109.247 with SMTP id l110mr14045426qgf.52.1452872740950; Fri, 15 Jan 2016 07:45:40 -0800 (PST) Return-Path: Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id f30si13830483qga.65.2016.01.15.07.45.40; Fri, 15 Jan 2016 07:45:40 -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 5DC076194F; Fri, 15 Jan 2016 15:45:40 +0000 (UTC) Authentication-Results: lists.linaro.org; dkim=fail reason="verification failed; unprotected key" header.d=linaro.org header.i=@linaro.org header.b=GK9DyqRw; 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 88C946193C; Fri, 15 Jan 2016 15:45:36 +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 2C7AB61941; Fri, 15 Jan 2016 15:45:34 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by lists.linaro.org (Postfix) with ESMTPS id 4794C6193B for ; Fri, 15 Jan 2016 15:45:33 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id l65so25328535wmf.1 for ; Fri, 15 Jan 2016 07:45:33 -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=wpHsjNr7c6uVZXHhg+SSWBTGfY6igreEEy+xue6KsUs=; b=GK9DyqRwBfvv+x6uRF35q4DFOvFOJVtoR2pjKm50QHUeT9i8crZ+s2swth10PT+HwG GC+acDfU137u7y4PsZdQobMhGPNxlpflNiQRtqs7FFooJArCHhZDVhfs2NsvYKF4WHVd tDjUFz4tvQmL6EXRYHJ23AVqm7Mty4zheLblY= 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=wpHsjNr7c6uVZXHhg+SSWBTGfY6igreEEy+xue6KsUs=; b=FNwT+E6DF8pk4ev2egcdvjmeh21bWtw1RD2RoX7dOnLoKzODaX5MqhYJVFX3d+twuv SbfgBAXoKQ5NFexuOn/vsirSv51Svow7N2KX+cs+/RvkPS2b+rDi/BsOvrghSDKkEALc gN9fBeJnlkIK86bRjMGtyBQIP8VDh3zM3IEIQ650QuR2V7FIJa9rlXPnxFhYgjQxF+gD sxNeRWF9ddWu/DvwudDrKmaIZy3L2I7WNWWsiXlCRwWXncgfbbJ1DGo2vf8Bo6+5X1H0 3IqV68ZfnQ3Xho68bwJJHinbD+pM+t2l3F5BJN+kxC2ENk2qrbrbZ8U9XB+GMlBgK89O BIaw== X-Gm-Message-State: ALoCoQm0C10/jDuSNQUSF4Lugy6Ko+An0tveThxcFOXolGXPHh6hy6T6/1q8fBWdQ713ZlqrEVU1PGYBKdwqXRskPc4s4qlnhg== X-Received: by 10.194.205.103 with SMTP id lf7mr10259567wjc.147.1452872732027; Fri, 15 Jan 2016 07:45:32 -0800 (PST) Received: from e106441.emea.arm.com ([2001:41d0:a:3cb4::1]) by smtp.gmail.com with ESMTPSA id u4sm11088644wjz.4.2016.01.15.07.45.31 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 15 Jan 2016 07:45:31 -0800 (PST) From: Stuart Haslam To: lng-odp@lists.linaro.org Date: Fri, 15 Jan 2016 15:45:19 +0000 Message-Id: <1452872719-14055-1-git-send-email-stuart.haslam@linaro.org> X-Mailer: git-send-email 2.1.1 X-Topics: patch Subject: [lng-odp] [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. Reviewed-by: Ivan Khoronzhuk --- 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