summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-10-29 15:39:11 +0100
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>2006-10-29 15:39:11 +0100
commit56563c22d658b6dcb7926fd41513618cd46c31a6 (patch)
tree7c87b7284282e418ddd96bb660ed37d0db1ecb84
parentdecacb2e6415029fe87a3680c8f967483ba05281 (diff)
Minor bugfix, indentation and removal of unnused variables.
-rw-r--r--libdrm/xf86drm.c20
1 files changed, 9 insertions, 11 deletions
diff --git a/libdrm/xf86drm.c b/libdrm/xf86drm.c
index df41d77a..5efb532b 100644
--- a/libdrm/xf86drm.c
+++ b/libdrm/xf86drm.c
@@ -2369,14 +2369,14 @@ int drmFenceUpdate(int fd, drmFence *fence)
drm_fence_arg_t arg;
memset(&arg, 0, sizeof(arg));
- arg.handle = fence->handle;
- arg.op = drm_fence_signaled;
- if (ioctl(fd, DRM_IOCTL_FENCE, &arg))
- return -errno;
- fence->class = arg.class;
- fence->type = arg.type;
- fence->signaled = arg.signaled;
- return 0;
+ arg.handle = fence->handle;
+ arg.op = drm_fence_signaled;
+ if (ioctl(fd, DRM_IOCTL_FENCE, &arg))
+ return -errno;
+ fence->class = arg.class;
+ fence->type = arg.type;
+ fence->signaled = arg.signaled;
+ return 0;
}
int drmFenceSignaled(int fd, drmFence *fence, unsigned fenceType,
@@ -2493,7 +2493,6 @@ void drmBOFreeList(drmBOList *list)
{
drmBONode *node;
drmMMListHead *l;
- int ret = 0;
l = list->list.next;
while(l != &list->list) {
@@ -2975,7 +2974,6 @@ int drmAddValidateItem(drmBOList *list, drmBO *buf, unsigned flags,
int *newItem)
{
drmBONode *node, *cur;
- unsigned oldFlags, newFlags;
drmMMListHead *l;
*newItem = 0;
@@ -3146,7 +3144,7 @@ int drmBOFenceList(int fd, drmBOList *list, unsigned fenceHandle)
return -EFAULT;
if (rep->ret)
return rep->ret;
- drmBOCopyReply(rep, buf);
+ drmBOCopyReply(rep, node->buf);
}
return 0;