mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 06:15:47 +00:00
Use enum ofperr in ofputil_decode_flow_removed()
The return type of both ofputil_decode_flow_removed() and nx_pull_match() is enum ofperr so it makes sense for error be of that type too. Signed-off-by: Simon Horman <horms@verge.net.au> Signed-off-by: Ben Pfaff <blp@nicira.com>
This commit is contained in:
@@ -1939,7 +1939,7 @@ ofputil_decode_flow_removed(struct ofputil_flow_removed *fr,
|
||||
fr->byte_count = ntohll(ofr->byte_count);
|
||||
} else if (raw == OFPRAW_NXT_FLOW_REMOVED) {
|
||||
struct nx_flow_removed *nfr;
|
||||
int error;
|
||||
enum ofperr error;
|
||||
|
||||
nfr = ofpbuf_pull(&b, sizeof *nfr);
|
||||
error = nx_pull_match(&b, ntohs(nfr->match_len), &fr->match,
|
||||
|
Reference in New Issue
Block a user