summaryrefslogtreecommitdiff
path: root/src/radeon_bios.c
diff options
context:
space:
mode:
authorArkadiusz Miskiewicz <arekm@maven.pl>2007-12-11 23:53:03 -0500
committerAlex Deucher <alex@botch2.(none)>2007-12-11 23:53:03 -0500
commit9e5efdecd12092031a4aebce58747cb4a6f48f28 (patch)
tree7bbedb07924073099129f4499cb3b686cf92f692 /src/radeon_bios.c
parentf3d2ec3a5ae61215c792018320158750e7aa937c (diff)
sparse fixes and cleanups from arekm
Diffstat (limited to 'src/radeon_bios.c')
-rw-r--r--src/radeon_bios.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/radeon_bios.c b/src/radeon_bios.c
index bc908b5..d150c4b 100644
--- a/src/radeon_bios.c
+++ b/src/radeon_bios.c
@@ -48,13 +48,12 @@ Bool RADEONGetBIOSInfo(ScrnInfoPtr pScrn, xf86Int10InfoPtr pInt10)
int tmp;
unsigned short dptr;
- if (!(info->VBIOS = xalloc(
#ifdef XSERVER_LIBPCIACCESS
- info->PciInfo->rom_size
+ info->VBIOS = xalloc(info->PciInfo->rom_size);
#else
- RADEON_VBIOS_SIZE
+ info->VBIOS = xalloc(RADEON_VBIOS_SIZE);
#endif
- ))) {
+ if (!info->VBIOS) {
xf86DrvMsg(pScrn->scrnIndex, X_ERROR,
"Cannot allocate space for hold Video BIOS!\n");
return FALSE;