Use pre-defined list_splice function.

main
Thomas Hellstrom 2007-01-29 13:36:17 +01:00
parent 45418bb1b1
commit 9a654e71bd
1 changed files with 3 additions and 3 deletions

View File

@ -381,7 +381,8 @@ int drm_fence_buffer_objects(drm_file_t * priv,
uint32_t fence_type = 0;
int count = 0;
int ret = 0;
struct list_head f_list, *l;
struct list_head *l;
LIST_HEAD(f_list);
mutex_lock(&dev->struct_mutex);
@ -411,8 +412,7 @@ int drm_fence_buffer_objects(drm_file_t * priv,
* the ones we already have..
*/
list_add_tail(&f_list, list);
list_del_init(list);
list_splice_init(list, &f_list);
if (fence) {
if ((fence_type & fence->type) != fence_type) {