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 343be1d..5eb1ee7 100644 --- a/ovn/ovn-nbd.c +++ b/ovn/ovn-nbd.c @@ -144,8 +144,7 @@ set_bindings(struct nbd_context *ctx) hmap_init(&bindings_hmap); OVNREC_BINDINGS_FOR_EACH(binding, ctx->ovn_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