projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5dcde6d
)
learning-switch: Remove unused variable.
author
Ben Pfaff
<blp@nicira.com>
Fri, 9 Jan 2009 01:21:46 +0000
(17:21 -0800)
committer
Ben Pfaff
<blp@nicira.com>
Tue, 13 Jan 2009 01:00:29 +0000
(17:00 -0800)
Found by Chris Eagle via Fortify.
lib/learning-switch.c
patch
|
blob
|
history
diff --git
a/lib/learning-switch.c
b/lib/learning-switch.c
index b312cb325bdc733bd3618589bef7f19a52936b6a..22838120849385e83635d273e31cdf2651d4cd01 100644
(file)
--- a/
lib/learning-switch.c
+++ b/
lib/learning-switch.c
@@
-592,8
+592,6
@@
process_flow_stats(struct lswitch *sw, struct rconn *rconn,
size_t len;
for (a = ofs->actions; (char *) a < end; a += len / 8) {
- uint16_t type;
-
len = ntohs(a->len);
if (len > end - (char *) a) {
VLOG_DBG_RL(&rl, "%012llx: action exceeds available space "
@@
-606,7
+604,6
@@
process_flow_stats(struct lswitch *sw, struct rconn *rconn,
break;
}
- type = ntohs(a->type);
if (a->type == htons(OFPAT_OUTPUT)) {
struct ofp_action_output *oao = (struct ofp_action_output *) a;
if (!may_send(sw, ntohs(oao->port))) {