diff options
Diffstat (limited to 'android/tester-gatt.c')
-rw-r--r-- | android/tester-gatt.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/android/tester-gatt.c b/android/tester-gatt.c index b8b088be6..88be3d88b 100644 --- a/android/tester-gatt.c +++ b/android/tester-gatt.c @@ -3665,14 +3665,9 @@ struct queue *get_gatt_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; } |