This variable is already defined at the top of the function, so just
reuse that instead of defining it again.

Signed-off-by: Russell Bryant <rbry...@redhat.com>
---
 ovn/ovn-nbd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/ovn/ovn-nbd.c b/ovn/ovn-nbd.c
index a6390a3..1571a0b 100644
--- a/ovn/ovn-nbd.c
+++ b/ovn/ovn-nbd.c
@@ -145,8 +145,7 @@ set_bindings(struct nbd_context *ctx)
     hmap_init(&bindings_hmap);
 
     SBREC_BINDINGS_FOR_EACH(binding, ctx->ovnsb_idl) {
-        struct binding_hash_node *hash_node = xzalloc(sizeof *hash_node);
-
+        hash_node = xzalloc(sizeof *hash_node);
         hash_node->binding = binding;
         hmap_insert(&bindings_hmap, &hash_node->node,
                 hash_string(binding->logical_port, 0));
-- 
2.1.0

_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to