diff mbox

[ovs-dev,2/7] clang: Fix dead assignment.

Message ID 1467176548-40488-3-git-send-email-u9012063@gmail.com
State Accepted
Headers show

Commit Message

William Tu June 29, 2016, 5:02 a.m. UTC
Signed-off-by: William Tu <u9012063@gmail.com>
---
 lib/dpif-netdev.c  | 1 -
 tests/test-ovsdb.c | 2 +-
 2 files changed, 1 insertion(+), 2 deletions(-)

Comments

Ben Pfaff July 3, 2016, 4:19 a.m. UTC | #1
On Tue, Jun 28, 2016 at 10:02:23PM -0700, William Tu wrote:
> Signed-off-by: William Tu <u9012063@gmail.com>

Applied, thanks!
diff mbox

Patch

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,