summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBen Pfaff <blp@ovn.org>2017-05-26 20:30:53 -0700
committerBen Pfaff <blp@ovn.org>2017-06-01 16:37:45 -0700
commitf7f37d192f70ceb15cc92de76ecb3fe22dcb13e2 (patch)
treed6ef17fee4b878cad1d799ebd98e6d8fc3269a67 /lib
parentf582b6df9efd546c49c3577af407a989b5ffd215 (diff)
downloadopenvswitch-f7f37d192f70ceb15cc92de76ecb3fe22dcb13e2.tar.gz
ofp-util: Remove dead code from ofputil_encode_get_async_reply().
Found by Coverity. Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14762682&defectInstanceId=4304823&mergedDefectId=180423 Signed-off-by: Ben Pfaff <blp@ovn.org> Acked-by: Justin Pettit <jpettit@ovn.org>
Diffstat (limited to 'lib')
-rw-r--r--lib/ofp-util.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index 157b66b93..6b09dcf1b 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -10955,8 +10955,6 @@ struct ofpbuf *
ofputil_encode_get_async_reply(const struct ofp_header *oh,
const struct ofputil_async_cfg *ac)
{
- struct ofpbuf *buf;
-
enum ofpraw raw = (oh->version < OFP14_VERSION
? OFPRAW_OFPT13_GET_ASYNC_REPLY
: OFPRAW_OFPT14_GET_ASYNC_REPLY);
@@ -10965,8 +10963,6 @@ ofputil_encode_get_async_reply(const struct ofp_header *oh,
raw == OFPRAW_OFPT14_GET_ASYNC_REPLY,
oh->version, UINT32_MAX);
return reply;
-
- return buf;
}
/* Encodes and returns a message, in a format appropriate for OpenFlow version