This patch removes dead stores found by llvm checker in dpctl_set_if().
Signed-off-by: Kevin Lo <[email protected]>
---
diff --git a/lib/dpctl.c b/lib/dpctl.c
index 4c4d1c3..a5696a7 100644
--- a/lib/dpctl.c
+++ b/lib/dpctl.c
@@ -381,13 +381,11 @@ dpctl_set_if(int argc, const char *argv[], struct
dpctl_params *dpctl_p)
dpctl_error(dpctl_p, 0,
"%s: can't change type from %s to %s",
name, type, value);
- error = EINVAL;
}
} else if (!strcmp(key, "port_no")) {
if (port_no != u32_to_odp(atoi(value))) {
dpctl_error(dpctl_p, 0, "%s: can't change port number from"
" %"PRIu32" to %d", name, port_no, atoi(value));
- error = EINVAL;
}
} else if (value[0] == '\0') {
smap_remove(&args, key);
_______________________________________________
dev mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/dev