ovs-ofctl: Drop assignment whose value is never used.
authorBen Pfaff <blp@nicira.com>
Wed, 10 Feb 2010 19:23:28 +0000 (11:23 -0800)
committerBen Pfaff <blp@nicira.com>
Thu, 11 Feb 2010 18:35:28 +0000 (10:35 -0800)
Found by Clang (http://clang-analyzer.llvm.org).

utilities/ovs-ofctl.c

index 2447ba285cd53deb466da83ed37263edfc0bbeed..7f24309b25f9f9839d812f13bae1980c07e3947f 100644 (file)
@@ -874,7 +874,7 @@ do_add_flows(int argc UNUSED, char *argv[])
         /* Parse and send.  str_to_flow() will expand and reallocate the data
          * in 'buffer', so we can't keep pointers to across the str_to_flow()
          * call. */
-        ofm = make_openflow(sizeof *ofm, OFPT_FLOW_MOD, &buffer);
+        make_openflow(sizeof *ofm, OFPT_FLOW_MOD, &buffer);
         str_to_flow(line, &match, buffer,
                     NULL, NULL, &priority, &idle_timeout, &hard_timeout);
         ofm = buffer->data;