rdma: Rename free function to be rd_cleanup

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: David Ahern <dsahern@gmail.com>
This commit is contained in:
Leon Romanovsky 2017-12-27 09:57:57 +02:00 committed by David Ahern
parent b1e6bc437f
commit 7109f4b212
1 changed files with 2 additions and 2 deletions

View File

@ -70,7 +70,7 @@ static int rd_init(struct rd *rd, int argc, char **argv, char *filename)
return rd_recv_msg(rd, rd_dev_init_cb, rd, seq);
}
static void rd_free(struct rd *rd)
static void rd_cleanup(struct rd *rd)
{
if (rd->json_output)
jsonw_destroy(&rd->jw);
@ -138,6 +138,6 @@ int main(int argc, char **argv)
err = rd_cmd(&rd);
out:
/* Always cleanup */
rd_free(&rd);
rd_cleanup(&rd);
return err ? EXIT_FAILURE : EXIT_SUCCESS;
}