summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-01-29 13:36:17 +0100
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2007-01-29 13:37:02 +0100
commit9a654e71bda3530f6d18d115729af27cc15033de (patch)
treee2ba4f118200af526b20980225f97ca4fe33a302
parent45418bb1b1a0fac38f0dda7e29022bfb4cae3d03 (diff)
downloaddrm-9a654e71bda3530f6d18d115729af27cc15033de.tar.gz
Use pre-defined list_splice function.
-rw-r--r--linux-core/drm_bo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux-core/drm_bo.c b/linux-core/drm_bo.c
index 13127834..cd0f4765 100644
--- a/linux-core/drm_bo.c
+++ b/linux-core/drm_bo.c
@@ -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) {