Found by Coverity.
Reported-at:
https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14762682&defectInstanceId=4304823&mergedDefectId=180423
Signed-off-by: Ben Pfaff <[email protected]>
---
lib/ofp-util.c | 4 ----
1 file changed, 4 deletions(-)
diff --git a/lib/ofp-util.c b/lib/ofp-util.c
index f05ca398c13e..073b49b5404a 100644
--- a/lib/ofp-util.c
+++ b/lib/ofp-util.c
@@ -10707,8 +10707,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);
@@ -10717,8 +10715,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
--
2.10.2
_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev