From patchwork Tue Jul 28 12:10:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxim Uvarov X-Patchwork-Id: 51587 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f199.google.com (mail-lb0-f199.google.com [209.85.217.199]) by patches.linaro.org (Postfix) with ESMTPS id E8C5F20323 for ; Tue, 28 Jul 2015 12:10:59 +0000 (UTC) Received: by lbvb1 with SMTP id b1sf37281324lbv.3 for ; Tue, 28 Jul 2015 05:10:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:delivered-to:from:to:date :message-id:subject:precedence:list-id:list-unsubscribe:list-archive :list-post:list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:errors-to:sender:x-original-sender :x-original-authentication-results:mailing-list; bh=72JrFCzV3PUWFRQD0upkEi82v18ay3hqE+RAbzR1oX8=; b=ePrjB2L04WyquJsyBxIbM+Y54SfuX6XMaPc1bEIficq4DhWCRuWgg6PFl/BqpHK0fm X8Bg7+ItuEpc5Cqbm1wt5Gnp/tAT5hGNU0MUxd3owLATj2ElEhkceAzdrXrMCQOnkmBF n3eIJ0tdfx0delb9xeYNlSAK/nRy4u/HQbdCjlStV2iP2gvNMDTLUPxm7HZsSqSKo0dn nrhshG+CgrCYF1/mNHNp/VoK01pqk1DXQgxVB7gwJ0k9bcJC0i6s5f6WiOksiuDdJSc5 NKEekw6CHnN7lyvWrsLS6DkQasbNjOpgLC1plJx4+Z2lC5nPNtIlMfd3Mi53CuHqKXJk IYlg== X-Gm-Message-State: ALoCoQkaQAUPUZ+4Rg3Z+5O9DlRFbfcjnLHdWRtTdphbm8UBSpts4ayYlrutd1Ww3hjuVp6NeNTw X-Received: by 10.180.79.10 with SMTP id f10mr1158847wix.3.1438085458562; Tue, 28 Jul 2015 05:10:58 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.39 with SMTP id j7ls781838lam.21.gmail; Tue, 28 Jul 2015 05:10:58 -0700 (PDT) X-Received: by 10.152.4.98 with SMTP id j2mr31552664laj.67.1438085458269; Tue, 28 Jul 2015 05:10:58 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id t9si18148240laj.106.2015.07.28.05.10.58 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jul 2015 05:10:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lagw2 with SMTP id w2so67190436lag.3 for ; Tue, 28 Jul 2015 05:10:58 -0700 (PDT) X-Received: by 10.152.36.161 with SMTP id r1mr32033616laj.88.1438085458006; Tue, 28 Jul 2015 05:10:58 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.7.198 with SMTP id l6csp2100582lba; Tue, 28 Jul 2015 05:10:57 -0700 (PDT) X-Received: by 10.140.35.200 with SMTP id n66mr35493430qgn.21.1438085456667; Tue, 28 Jul 2015 05:10:56 -0700 (PDT) Received: from lists.linaro.org (lists.linaro.org. [54.225.227.206]) by mx.google.com with ESMTP id 77si25075043qku.45.2015.07.28.05.10.55; Tue, 28 Jul 2015 05:10:56 -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; Received: by lists.linaro.org (Postfix, from userid 109) id 8EC8861CAC; Tue, 28 Jul 2015 12:10:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on ip-10-142-244-252.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, URIBL_BLOCKED autolearn=disabled version=3.4.0 Received: from ip-10-142-244-252.ec2.internal (localhost [127.0.0.1]) by lists.linaro.org (Postfix) with ESMTP id AF7B661823; Tue, 28 Jul 2015 12:10:46 +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 B76D96184A; Tue, 28 Jul 2015 12:10:43 +0000 (UTC) Received: from mail-wi0-f177.google.com (mail-wi0-f177.google.com [209.85.212.177]) by lists.linaro.org (Postfix) with ESMTPS id E51036181C for ; Tue, 28 Jul 2015 12:10:41 +0000 (UTC) Received: by wibxm9 with SMTP id xm9so154173190wib.0 for ; Tue, 28 Jul 2015 05:10:41 -0700 (PDT) X-Received: by 10.194.103.130 with SMTP id fw2mr69367850wjb.121.1438085441192; Tue, 28 Jul 2015 05:10:41 -0700 (PDT) Received: from localhost.localdomain ([87.120.178.39]) by smtp.gmail.com with ESMTPSA id ul1sm32962344wjc.30.2015.07.28.05.10.38 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Jul 2015 05:10:39 -0700 (PDT) From: Maxim Uvarov To: lng-odp@lists.linaro.org Date: Tue, 28 Jul 2015 15:10:30 +0300 Message-Id: <1438085430-19557-1-git-send-email-maxim.uvarov@linaro.org> X-Mailer: git-send-email 1.9.1 X-Topics: patch Subject: [lng-odp] [PATCH] linux-generic: fix login to calling pktio init and term functions X-BeenThere: lng-odp@lists.linaro.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: 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" X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: maxim.uvarov@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 Signed-off-by: Maxim Uvarov --- platform/linux-generic/odp_packet_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linux-generic/odp_packet_io.c b/platform/linux-generic/odp_packet_io.c index 2bfec52..f93655a 100644 --- a/platform/linux-generic/odp_packet_io.c +++ b/platform/linux-generic/odp_packet_io.c @@ -74,7 +74,7 @@ int odp_pktio_init_global(void) } for (pktio_if = 0; pktio_if_ops[pktio_if]; ++pktio_if) { - if (!pktio_if_ops[pktio_if]->init) + if (pktio_if_ops[pktio_if]->init) if (pktio_if_ops[pktio_if]->init()) ODP_ERR("failed to initialized pktio type %d", pktio_if); @@ -91,7 +91,7 @@ int odp_pktio_term_global(void) int pktio_if; for (pktio_if = 0; pktio_if_ops[pktio_if]; ++pktio_if) { - if (!pktio_if_ops[pktio_if]->term) + if (pktio_if_ops[pktio_if]->term) if (pktio_if_ops[pktio_if]->term()) ODP_ERR("failed to terminaye pktio type %d", pktio_if);