Upgrade bluez5_37 :Merge the code from private
[platform/upstream/bluez.git] / android / tester-pan.c
old mode 100644 (file)
new mode 100755 (executable)
index e033e21..9da2488
@@ -226,14 +226,9 @@ struct queue *get_pan_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;
 }