summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-09-11 18:01:25 +0200
committerMarek Olšák <[email protected]>2011-09-12 22:03:03 +0200
commitac028b20e5431ed3c78b6a4a9192e84f6873c9fd (patch)
tree1110a890d042cee96f5e38c155d585597bd10b84 /src/gallium/winsys
parentb87bc2eb44cd605f2992335b5649ca907ba0c55d (diff)
r600g: set the return type of radeon_destroy to void
Diffstat (limited to 'src/gallium/winsys')
-rw-r--r--src/gallium/winsys/r600/drm/r600_drm.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/gallium/winsys/r600/drm/r600_drm.c b/src/gallium/winsys/r600/drm/r600_drm.c
index c9fb09787ae..d2cb9da64af 100644
--- a/src/gallium/winsys/r600/drm/r600_drm.c
+++ b/src/gallium/winsys/r600/drm/r600_drm.c
@@ -64,7 +64,8 @@ struct radeon *radeon_create(struct radeon_winsys *ws)
radeon->family = radeon_family_from_device(radeon->info.pci_id);
if (radeon->family == CHIP_UNKNOWN) {
fprintf(stderr, "Unknown chipset 0x%04X\n", radeon->info.pci_id);
- return radeon_destroy(radeon);
+ radeon_destroy(radeon);
+ return NULL;
}
/* setup class */
@@ -81,11 +82,7 @@ struct radeon *radeon_create(struct radeon_winsys *ws)
return radeon;
}
-struct radeon *radeon_destroy(struct radeon *radeon)
+void radeon_destroy(struct radeon *radeon)
{
- if (radeon == NULL)
- return NULL;
-
FREE(radeon);
- return NULL;
}