projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3d98cb
)
ofp-parse: Remove write-only variable in parse_ofp_flow_mod_str().
author
Ben Pfaff
<blp@nicira.com>
Sun, 2 Oct 2011 21:48:09 +0000
(14:48 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 3 Oct 2011 16:27:56 +0000
(09:27 -0700)
lib/ofp-parse.c
patch
|
blob
|
history
diff --git
a/lib/ofp-parse.c
b/lib/ofp-parse.c
index fd0a72e0215503c36aa8e28193a7305aa36f7f81..6b1cfa099034680f297b80b3f0c72550165fcffa 100644
(file)
--- a/
lib/ofp-parse.c
+++ b/
lib/ofp-parse.c
@@
-593,11
+593,9
@@
parse_ofp_flow_mod_str(struct list *packets, enum nx_flow_format *cur_format,
{
enum nx_flow_format min_format, next_format;
struct cls_rule rule_copy;
- struct ofpbuf actions;
struct ofpbuf *ofm;
struct ofputil_flow_mod fm;
- ofpbuf_init(&actions, 64);
parse_ofp_str(&fm, command, string, verbose);
min_format = ofputil_min_flow_format(&fm.cr);
@@
-622,8
+620,6
@@
parse_ofp_flow_mod_str(struct list *packets, enum nx_flow_format *cur_format,
ofm = ofputil_encode_flow_mod(&fm, *cur_format, *flow_mod_table_id);
list_push_back(packets, &ofm->list_node);
-
- ofpbuf_uninit(&actions);
}
/* Similar to parse_ofp_flow_mod_str(), except that the string is read from