From patchwork Wed Jun 29 05:02:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William Tu X-Patchwork-Id: 641829 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from archives.nicira.com (archives.nicira.com [96.126.127.54]) by ozlabs.org (Postfix) with ESMTP id 3rfVtB0S34z9sf9 for ; Wed, 29 Jun 2016 15:02:58 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=lxwQS1mF; dkim-atps=neutral Received: from archives.nicira.com (localhost [127.0.0.1]) by archives.nicira.com (Postfix) with ESMTP id 3356D1090F; Tue, 28 Jun 2016 22:02:45 -0700 (PDT) X-Original-To: dev@openvswitch.org Delivered-To: dev@openvswitch.org Received: from mx1e4.cudamail.com (mx1.cudamail.com [69.90.118.67]) by archives.nicira.com (Postfix) with ESMTPS id 13B0710777 for ; Tue, 28 Jun 2016 22:02:44 -0700 (PDT) Received: from bar5.cudamail.com (unknown [192.168.21.12]) by mx1e4.cudamail.com (Postfix) with ESMTPS id 970671E04BD for ; Tue, 28 Jun 2016 23:02:43 -0600 (MDT) X-ASG-Debug-ID: 1467176562-09eadd73960e900001-byXFYA Received: from mx3-pf2.cudamail.com ([192.168.14.1]) by bar5.cudamail.com with ESMTP id UH3gMuUxwh6fMpIq (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 28 Jun 2016 23:02:43 -0600 (MDT) X-Barracuda-Envelope-From: u9012063@gmail.com X-Barracuda-RBL-Trusted-Forwarder: 192.168.14.1 Received: from unknown (HELO mail-pa0-f66.google.com) (209.85.220.66) by mx3-pf2.cudamail.com with ESMTPS (AES128-SHA encrypted); 29 Jun 2016 05:02:42 -0000 Received-SPF: pass (mx3-pf2.cudamail.com: SPF record at _netblocks.google.com designates 209.85.220.66 as permitted sender) X-Barracuda-Apparent-Source-IP: 209.85.220.66 X-Barracuda-RBL-IP: 209.85.220.66 Received: by mail-pa0-f66.google.com with SMTP id us13so3422664pab.1 for ; Tue, 28 Jun 2016 22:02:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=kyVP44MhgL8DSI8ZZ0TNBLP1wC3uhjGo1PYStVJH0PA=; b=lxwQS1mFN5q02OBlPr4HHULp/uypHjb/CiVwiWpw1aqmdeVDDU53zuNtGs5HxUrlbS m371geb9s99mKyXvKy/DahwzblR3wfNqFxDNeWQfjhPBsh7jei1teUtE2AMFxcSoRCjk oivJmx0oaCrokKh8ydTD61nDa9wF9NPVamHmoD5ukQ6Eus4PIsMkelr696OMMHNSACGo p8GH5bZ608+0u/cap6lNFdRTxmhcGhZDEj5VzwC2OXjij+S3sfk55KHFhp5TwL+06iqi hpwxTEqwWlL7zUTKlJ2rWnZRsg8sp0bvBK7FPZBC03T8g61559ui0+OH1uj7A3itEqxn TZ1A== 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:in-reply-to :references; bh=kyVP44MhgL8DSI8ZZ0TNBLP1wC3uhjGo1PYStVJH0PA=; b=Tc5VXOdlMpMk8mmEeTJdqUC+ju+rQ617bTnoGcOUImTnfyNC4gZ9TB0CSNlGNrp9L8 a0j5zrNoqGk/3IjEuS/B+VCtJMTrz3XttW5AUzoCP9r4ceL4hsY3Rlx6pmVbKFqWwWwg 12y/aegmm66+UtDeU5/l/Q0dj09oQbL1qKP78o7otx8uibLg7wLAS8srMDEWBG3Hfrv0 8ryvtczIpg4tDQGZmimYwT7X2+jyoE8NoEeoWrQKbQMz8+eVoWoDVIQbhk4IXPQQMh9p fxjVuUJzin2nN5R+FCV8743ke/pQuFT5AabypT/778F5+HKs0nrA9t8vD4FcrkorfoaS Q2qQ== X-Gm-Message-State: ALyK8tJrRXDjJb3QAeuI14XeFpvEKyoGBxcrKZ8Pu/TDTdNMk7VoHbd1q8FQFOcxTWmdFQ== X-Received: by 10.66.160.199 with SMTP id xm7mr8236594pab.78.1467176562211; Tue, 28 Jun 2016 22:02:42 -0700 (PDT) Received: from vm-dev.localdomain ([76.126.157.223]) by smtp.gmail.com with ESMTPSA id y70sm1857417pff.25.2016.06.28.22.02.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Jun 2016 22:02:41 -0700 (PDT) X-CudaMail-Envelope-Sender: u9012063@gmail.com From: William Tu To: dev@openvswitch.org X-CudaMail-MID: CM-V2-627068598 X-CudaMail-DTE: 062816 X-CudaMail-Originating-IP: 209.85.220.66 Date: Tue, 28 Jun 2016 22:02:23 -0700 X-ASG-Orig-Subj: [##CM-V2-627068598##][PATCH 2/7] clang: Fix dead assignment. Message-Id: <1467176548-40488-3-git-send-email-u9012063@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1467176548-40488-1-git-send-email-u9012063@gmail.com> References: <1467176548-40488-1-git-send-email-u9012063@gmail.com> X-GBUdb-Analysis: 0, 209.85.220.66, Ugly c=0.25607 p=-0.166667 Source Normal X-MessageSniffer-Rules: 0-0-0-5087-c X-Barracuda-Connect: UNKNOWN[192.168.14.1] X-Barracuda-Start-Time: 1467176563 X-Barracuda-Encrypted: DHE-RSA-AES256-SHA X-Barracuda-URL: https://web.cudamail.com:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at cudamail.com X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.60 X-Barracuda-Spam-Status: No, SCORE=0.60 using global scores of TAG_LEVEL=3.5 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=4.0 tests=BSF_SC5_MJ1963, DKIM_SIGNED, MAILTO_TO_SPAM_ADDR, RDNS_NONE X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.30853 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.00 DKIM_SIGNED Domain Keys Identified Mail: message has a signature 0.00 MAILTO_TO_SPAM_ADDR URI: Includes a link to a likely spammer email 0.10 RDNS_NONE Delivered to trusted network by a host with no rDNS 0.50 BSF_SC5_MJ1963 Custom Rule MJ1963 Subject: [ovs-dev] [PATCH 2/7] clang: Fix dead assignment. X-BeenThere: dev@openvswitch.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: dev-bounces@openvswitch.org Sender: "dev" Signed-off-by: William Tu --- lib/dpif-netdev.c | 1 - tests/test-ovsdb.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c index ff4227c..37c2631 100644 --- a/lib/dpif-netdev.c +++ b/lib/dpif-netdev.c @@ -2842,7 +2842,6 @@ pmd_thread_main(void *f_) int poll_cnt; int i; - poll_cnt = 0; poll_list = NULL; /* Stores the pmd thread's 'pmd' to 'per_pmd_key'. */ diff --git a/tests/test-ovsdb.c b/tests/test-ovsdb.c index aa7921d..61ba7d8 100644 --- a/tests/test-ovsdb.c +++ b/tests/test-ovsdb.c @@ -2244,7 +2244,7 @@ do_idl_partial_update_map_column(struct ovs_cmdl_context *ctx) /* Insert new elements in different map columns */ myRow = idltest_simple2_first(idl); myTxn = ovsdb_idl_txn_create(idl); - smap = idltest_simple2_get_smap(myRow, OVSDB_TYPE_STRING, + idltest_simple2_get_smap(myRow, OVSDB_TYPE_STRING, OVSDB_TYPE_STRING); idltest_simple2_update_smap_setkey(myRow, "key1", "myList1"); imap = idltest_simple2_get_imap(myRow, OVSDB_TYPE_INTEGER,