diff mbox series

[ovs-dev,ovn,v3,2/5] Don't check for writeability of rhs during assignment.

Message ID 20200727211920.3697694-3-mmichels@redhat.com
State Superseded
Headers show
Series Add ECMP symmetric replies | expand

Commit Message

Mark Michelson July 27, 2020, 9:19 p.m. UTC
The only condition under which the right-hand side of an assignment
needs to be checked for writeability is if it is an exchange (<->)
operation.

Signed-off-by: Mark Michelson <mmichels@redhat.com>
---
 lib/actions.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/actions.c b/lib/actions.c
index e14907e3d..b423995c3 100644
--- a/lib/actions.c
+++ b/lib/actions.c
@@ -515,7 +515,7 @@  parse_assignment_action(struct action_context *ctx, bool exchange,
 
     char *error = expr_type_check(lhs, lhs->n_bits, true);
     if (!error) {
-        error = expr_type_check(&rhs, rhs.n_bits, true);
+        error = expr_type_check(&rhs, rhs.n_bits, exchange);
     }
     if (error) {
         lexer_error(ctx->lexer, "%s", error);