bond: Remove write-only variable.
authorBen Pfaff <blp@nicira.com>
Wed, 18 May 2011 23:23:15 +0000 (16:23 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 19 May 2011 17:51:45 +0000 (10:51 -0700)
lib/bond.c

index 9caa3f2efb745c6bd33cf87722c4d07f252c8349..5cb218daf62a0d458eaff07bac64f0db33b5d094 100644 (file)
@@ -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;