diff options
author | Szymon Janc <szymon.janc@codecoup.pl> | 2015-10-16 12:24:09 +0200 |
---|---|---|
committer | Szymon Janc <szymon.janc@codecoup.pl> | 2015-10-30 11:44:19 +0100 |
commit | 97075679fe12d96fb433a1cac860e5dd90538e72 (patch) | |
tree | ce21f4b709249050f4153b7acf057bdb66c2ca52 /android/tester-gatt.c | |
parent | 962285c7cf3719e59db1a351ae615e87d3f242ad (diff) | |
download | bluez-97075679fe12d96fb433a1cac860e5dd90538e72.tar.gz |
android: Remove dead code
This removes dead code due to memory allocation with new0 not being
able to fail.
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; } |