erase unreachable code
[platform/core/uifw/libtdm.git] / client / tdm_client.c
index 57f8ce3..d0aa6ea 100644 (file)
@@ -2147,8 +2147,6 @@ tdm_client_voutput_destroy(tdm_client_voutput *voutput)
                LIST_FOR_EACH_ENTRY_SAFE(cb, cbb, &private_voutput->buffer_list, link) {
                        tbm_surface_h tbm_surface = NULL;
 
-                       if (!cb) continue;
-
                        LIST_DEL(&cb->link);
 
                        tbm_surface = (tbm_surface_h)wl_buffer_get_user_data(cb->wl_buffer);
@@ -2328,8 +2326,6 @@ tdm_client_voutput_remove_commit_handler(tdm_client_voutput *voutput,
 
                LIST_DEL(&h->link);
                free(h);
-
-               pthread_mutex_unlock(&private_client->lock);
        }
 
        pthread_mutex_unlock(&private_client->lock);