diff mbox series

[ovs-dev,1/1] ovsdb_execute_mutate: removed unused ovsdb_row pointer variable

Message ID 1572354298-21707-1-git-send-email-damjan.skvarc@gmail.com
State Accepted
Headers show
Series [ovs-dev,1/1] ovsdb_execute_mutate: removed unused ovsdb_row pointer variable | expand

Commit Message

Damijan Skvarc Oct. 29, 2019, 1:04 p.m. UTC
Signed-off-by: Damijan Skvarc <damjan.skvarc@gmail.com>
---
 ovsdb/execution.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Ben Pfaff Oct. 30, 2019, 5:34 p.m. UTC | #1
On Tue, Oct 29, 2019 at 02:04:58PM +0100, Damijan Skvarc wrote:
> Signed-off-by: Damijan Skvarc <damjan.skvarc@gmail.com>

Good catch.  Applied to master, thanks!
diff mbox series

Patch

diff --git a/ovsdb/execution.c b/ovsdb/execution.c
index c55a0b7..f2cf3d7 100644
--- a/ovsdb/execution.c
+++ b/ovsdb/execution.c
@@ -562,7 +562,6 @@  ovsdb_execute_mutate(struct ovsdb_execution *x, struct ovsdb_parser *parser,
     const struct json *mutations_json;
     struct ovsdb_condition condition = OVSDB_CONDITION_INITIALIZER(&condition);
     struct ovsdb_mutation_set mutations = OVSDB_MUTATION_SET_INITIALIZER;
-    struct ovsdb_row *row = NULL;
     struct mutate_row_cbdata mr;
     struct ovsdb_error *error;
 
@@ -595,7 +594,6 @@  ovsdb_execute_mutate(struct ovsdb_execution *x, struct ovsdb_parser *parser,
         json_object_put(result, "count", json_integer_create(mr.n_matches));
     }
 
-    ovsdb_row_destroy(row);
     ovsdb_mutation_set_destroy(&mutations);
     ovsdb_condition_destroy(&condition);