summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2008-08-19 15:06:53 -0400
committerAdam Jackson <ajax@redhat.com>2008-08-19 15:06:53 -0400
commitb99fc65b53769400821a2bd8f691ece35a5b8847 (patch)
tree3d1ddb0d549a191a9dbaffb05e013852b692d2ed
parentb1f2c7a89ace1f6e5750783f3c43c4c5a6d24374 (diff)
downloadxserver-b99fc65b53769400821a2bd8f691ece35a5b8847.tar.gz
Simplify calling xf86EnableIO() a bit.
-rw-r--r--hw/xfree86/common/xf86Init.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c
index 9a9ec3403..cb7b89837 100644
--- a/hw/xfree86/common/xf86Init.c
+++ b/hw/xfree86/common/xf86Init.c
@@ -730,11 +730,8 @@ InitOutput(ScreenInfo *pScreenInfo, int argc, char **argv)
}
/* Enable full I/O access */
- if (xorgHWAccess) {
- if(!xf86EnableIO())
- /* oops, we have failed */
- xorgHWAccess = FALSE;
- }
+ if (xorgHWAccess)
+ xorgHWAccess = xf86EnableIO();
/*
* Locate bus slot that had register IO enabled at server startup