vswitchd: Drop assignment whose value is never used in port_reconfigure().
authorBen Pfaff <blp@nicira.com>
Wed, 10 Feb 2010 19:02:09 +0000 (11:02 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 11 Feb 2010 18:35:28 +0000 (10:35 -0800)
Seems cleaner this way.

Found by Clang (http://clang-analyzer.llvm.org/).

vswitchd/bridge.c

index 53b20e3..f097e18 100644 (file)
@@ -3083,7 +3083,7 @@ port_reconfigure(struct port *port, const struct ovsrec_port *cfg)
 
         iface = shash_find_data(&old_ifaces, if_cfg->name);
         if (!iface) {
-            iface = iface_create(port, if_cfg);
+            iface_create(port, if_cfg);
         } else {
             iface->cfg = if_cfg;
         }