Change-Id: Iaa47ab64c235c7742e9849067c6814609d15ef55
Signed-off-by: Dmitry Bogatov <d.bogatov@samsung.com>
sync_lock(&write_queue.queue_sync);
while (write_queue.start_ptr) {
- /* If start points to NULL => list is empty => exit */
- if (!write_queue.start_ptr) {
- result = NULL;
- goto get_from_write_list_unlock;
- }
/* We're found subbuffer */
if (is_buffer_enough(write_queue.start_ptr, size)) {
}
}
-get_from_write_list_unlock:
/* Unlock write list sync primitive */
sync_unlock(&write_queue.queue_sync);