Cleanup: remove logically dead code
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Feb 2014 15:17:22 +0000 (10:17 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 21 Feb 2014 15:17:22 +0000 (10:17 -0500)
CID 1021557 (#1 of 1): Logically dead code (DEADCODE)
dead_error_line:
Execution cannot reach this statement "goto end;".

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
formats/ctf/callbacks.c

index 8a8b3eed5f0d0f15a994cf4c84efcb1b172da70a..9242a2b98ea57ee123e1cef876054b51c43b4d96 100644 (file)
@@ -203,8 +203,6 @@ void process_callbacks(struct bt_ctf_iter *iter,
        if (iter->main_callbacks.callback) {
                for (i = 0; i < iter->main_callbacks.callback->len; i++) {
                        cb = &g_array_index(iter->main_callbacks.callback, struct bt_callback, i);
        if (iter->main_callbacks.callback) {
                for (i = 0; i < iter->main_callbacks.callback->len; i++) {
                        cb = &g_array_index(iter->main_callbacks.callback, struct bt_callback, i);
-                       if (!cb)
-                               goto end;
                        ret = cb->callback(&ctf_data, cb->private_data);
                        switch (ret) {
                        case BT_CB_OK_STOP:
                        ret = cb->callback(&ctf_data, cb->private_data);
                        switch (ret) {
                        case BT_CB_OK_STOP:
This page took 0.027631 seconds and 4 git commands to generate.