diff options
Diffstat (limited to 'android/tester-hdp.c')
-rw-r--r-- | android/tester-hdp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/android/tester-hdp.c b/android/tester-hdp.c index 80f3b5f20..e8498205d 100644 --- a/android/tester-hdp.c +++ b/android/tester-hdp.c @@ -549,14 +549,9 @@ struct queue *get_hdp_tests(void) uint16_t i = 0; list = queue_new(); - if (!list) - return NULL; for (; i < sizeof(test_cases) / sizeof(test_cases[0]); ++i) - if (!queue_push_tail(list, &test_cases[i])) { - queue_destroy(list, NULL); - return NULL; - } + queue_push_tail(list, &test_cases[i]); return list; } |