projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sflow: Don't assign value that is never used.
[openvswitch]
/
ofproto
/
ofproto-sflow.c
diff --git
a/ofproto/ofproto-sflow.c
b/ofproto/ofproto-sflow.c
index 1b659d1ab850f92b26d11077bc94cafab6abcf52..44c94a124ff1b9c102a903c7100d6cabc17f97fd 100644
(file)
--- a/
ofproto/ofproto-sflow.c
+++ b/
ofproto/ofproto-sflow.c
@@
-367,7
+367,6
@@
ofproto_sflow_set_options(struct ofproto_sflow *os,
unsigned int odp_port;
SFLAddress agentIP;
time_t now;
unsigned int odp_port;
SFLAddress agentIP;
time_t now;
- int error;
if (!options->targets.n || !options->sampling_rate) {
/* No point in doing any work if there are no targets or nothing to
if (!options->targets.n || !options->sampling_rate) {
/* No point in doing any work if there are no targets or nothing to
@@
-385,8
+384,8
@@
ofproto_sflow_set_options(struct ofproto_sflow *os,
if (options_changed
|| collectors_count(os->collectors) < options->targets.n) {
collectors_destroy(os->collectors);
if (options_changed
|| collectors_count(os->collectors) < options->targets.n) {
collectors_destroy(os->collectors);
-
error = collectors_create(&options->targets
,
-
SFL_DEFAULT_COLLECTOR_PORT,
&os->collectors);
+
collectors_create(&options->targets, SFL_DEFAULT_COLLECTOR_PORT
,
+ &os->collectors);
if (os->collectors == NULL) {
VLOG_WARN_RL(&rl, "no collectors could be initialized, "
"sFlow disabled");
if (os->collectors == NULL) {
VLOG_WARN_RL(&rl, "no collectors could be initialized, "
"sFlow disabled");