summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Tu <u9012063@gmail.com>2016-06-28 22:02:23 -0700
committerBen Pfaff <blp@ovn.org>2016-07-02 21:19:22 -0700
commit6ee9536320c142b624f351eaac96d701acf74149 (patch)
treede9eea42fe343458e1c0d165d5dc9b0d3c7676fb
parent88b87a36123e5ce3704b5e79950e83651db43ef7 (diff)
downloadopenvswitch-6ee9536320c142b624f351eaac96d701acf74149.tar.gz
Fix dead assignments.
Found by Clang. Signed-off-by: William Tu <u9012063@gmail.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
-rw-r--r--lib/dpif-netdev.c1
-rw-r--r--tests/test-ovsdb.c2
2 files changed, 1 insertions, 2 deletions
diff --git a/lib/dpif-netdev.c b/lib/dpif-netdev.c
index ff4227c37..37c2631d2 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 aa7921d03..61ba7d8b4 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,