r600g: remove dead label & fix indentation
authorJerome Glisse <jglisse@redhat.com>
Mon, 4 Oct 2010 14:40:07 +0000 (10:40 -0400)
committerJerome Glisse <jglisse@redhat.com>
Mon, 4 Oct 2010 21:25:19 +0000 (17:25 -0400)
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
src/gallium/winsys/r600/drm/radeon_bo.c

index bb93ce6c9e30c88479cc3b3678893ce331004d67..14af3ec97ec3d2e6d0ce328fbe49188b0aa254f0 100644 (file)
@@ -58,9 +58,7 @@ static int radeon_bo_fixed_map(struct radeon *radeon, struct radeon_bo *bo)
        }
        bo->data = ptr;
 
-success:
        bo->map_count++;
-
        return 0;
 }
 
@@ -168,16 +166,16 @@ int radeon_bo_wait(struct radeon *radeon, struct radeon_bo *bo)
 
 int radeon_bo_busy(struct radeon *radeon, struct radeon_bo *bo, uint32_t *domain)
 {
-        struct drm_radeon_gem_busy args;
-        int ret;
+       struct drm_radeon_gem_busy args;
+       int ret;
 
-        memset(&args, 0, sizeof(args));
-        args.handle = bo->handle;
-        args.domain = 0;
+       memset(&args, 0, sizeof(args));
+       args.handle = bo->handle;
+       args.domain = 0;
 
-        ret = drmCommandWriteRead(radeon->fd, DRM_RADEON_GEM_BUSY,
-                                  &args, sizeof(args));
+       ret = drmCommandWriteRead(radeon->fd, DRM_RADEON_GEM_BUSY,
+                       &args, sizeof(args));
 
-        *domain = args.domain;
-        return ret;
+       *domain = args.domain;
+       return ret;
 }