From: Ben Pfaff Date: Wed, 10 Feb 2010 19:23:28 +0000 (-0800) Subject: ovs-ofctl: Drop assignment whose value is never used. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62ee3464d99c0e37f38b503321cd46181c5c7617;p=openvswitch ovs-ofctl: Drop assignment whose value is never used. Found by Clang (http://clang-analyzer.llvm.org). --- diff --git a/utilities/ovs-ofctl.c b/utilities/ovs-ofctl.c index 2447ba28..7f24309b 100644 --- a/utilities/ovs-ofctl.c +++ b/utilities/ovs-ofctl.c @@ -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;