ovs-ofctl: Avoid impossible check for !osm in fetch_port_by_stats().
authorBen Pfaff <blp@nicira.com>
Sun, 13 May 2012 23:41:05 +0000 (16:41 -0700)
committerBen Pfaff <blp@nicira.com>
Mon, 14 May 2012 16:37:18 +0000 (09:37 -0700)
commitf4dace9c281baa7cb133ba0bc2dd997386389eed
tree12e656d76aa948222cc47d53b2848d6340dc1775
parentf5cd6874f1e4efcd1d513a294bf7709933959b97
ovs-ofctl: Avoid impossible check for !osm in fetch_port_by_stats().

At the time of the call to ofpbuf_at(), we know that the ofp_stats_msg is
present because ofputil_decode_msg_type() reported that it was.  Therefore,
we can use ofpbuf_at_assert() and don't have to check for a null pointer.

Found by clang.

Signed-off-by: Ben Pfaff <blp@nicira.com>
utilities/ovs-ofctl.c