radeon: Fix cast and comment.
authorCorbin Simpson <MostAwesomeDude@gmail.com>
Tue, 28 Apr 2009 11:37:56 +0000 (04:37 -0700)
committerCorbin Simpson <MostAwesomeDude@gmail.com>
Fri, 1 May 2009 11:39:04 +0000 (04:39 -0700)
src/gallium/winsys/drm/radeon/core/radeon_r300.c

index 3302d623bf9c4abb6f95935b002fffc1bb74821e..adbf23ab510148ce559fe6722bde57d95ee82226 100644 (file)
@@ -56,8 +56,7 @@ static void do_ioctls(struct r300_winsys* winsys, int fd)
     int target;
     int retval;
 
-    /* XXX is this cast safe? */
-    gp.value = (int*)&target;
+    gp.value = &target;
 
     /* First, get the number of pixel pipes */
     gp.param = RADEON_PARAM_NUM_GB_PIPES;