From: Ben Pfaff Date: Wed, 18 May 2011 23:23:15 +0000 (-0700) Subject: bond: Remove write-only variable. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=44dfa85908edbf26b5979082175e7c32a6aa974e;p=openvswitch bond: Remove write-only variable. --- diff --git a/lib/bond.c b/lib/bond.c index 9caa3f2e..5cb218da 100644 --- a/lib/bond.c +++ b/lib/bond.c @@ -1033,7 +1033,6 @@ bond_unixctl_show(struct unixctl_conn *conn, HMAP_FOR_EACH (slave, hmap_node, &bond->slaves) { struct bond_entry *be; - struct flow flow; /* Basic info. */ ds_put_format(&ds, "\nslave %s: %s\n", @@ -1055,7 +1054,6 @@ bond_unixctl_show(struct unixctl_conn *conn, } /* Hashes. */ - memset(&flow, 0, sizeof flow); for (be = bond->hash; be <= &bond->hash[BOND_MASK]; be++) { int hash = be - bond->hash;