Fix dead assignments.
authorWilliam Tu <u9012063@gmail.com>
Wed, 29 Jun 2016 05:02:23 +0000 (22:02 -0700)
committerBen Pfaff <blp@ovn.org>
Sun, 3 Jul 2016 04:19:22 +0000 (21:19 -0700)
Found by Clang.

Signed-off-by: William Tu <u9012063@gmail.com>
Signed-off-by: Ben Pfaff <blp@ovn.org>
lib/dpif-netdev.c
tests/test-ovsdb.c

index ff4227c..37c2631 100644 (file)
@@ -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'. */
index aa7921d..61ba7d8 100644 (file)
@@ -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,