diff mbox

[API-NEXT,PATCHv11,06/13] validation: schedule: initialize queue and pool parameters

Message ID 1439085315-6957-7-git-send-email-bill.fischofer@linaro.org
State Superseded
Headers show

Commit Message

Bill Fischofer Aug. 9, 2015, 1:55 a.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 test/validation/scheduler/scheduler.c | 4 ++++
 1 file changed, 4 insertions(+)
diff mbox

Patch

diff --git a/test/validation/scheduler/scheduler.c b/test/validation/scheduler/scheduler.c
index fe03ab7..bbe829e 100644
--- a/test/validation/scheduler/scheduler.c
+++ b/test/validation/scheduler/scheduler.c
@@ -112,6 +112,8 @@  static void scheduler_test_queue_destroy(void)
 				      ODP_SCHED_SYNC_ATOMIC,
 				      ODP_SCHED_SYNC_ORDERED};
 
+	odp_queue_param_init(&qp);
+	odp_pool_param_init(&params);
 	params.buf.size  = 100;
 	params.buf.align = 0;
 	params.buf.num   = 1;
@@ -619,6 +621,7 @@  static int create_queues(void)
 
 	for (i = 0; i < prios; i++) {
 		odp_queue_param_t p;
+		odp_queue_param_init(&p);
 		p.sched.prio  = i;
 
 		for (j = 0; j < QUEUES_PER_PRIO; j++) {
@@ -667,6 +670,7 @@  static int scheduler_suite_init(void)
 	thread_args_t *args;
 	odp_pool_param_t params;
 
+	odp_pool_param_init(&params);
 	params.buf.size  = BUF_SIZE;
 	params.buf.align = 0;
 	params.buf.num   = MSG_POOL_SIZE / BUF_SIZE;