summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/radeon_probe.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/radeon_probe.c b/src/radeon_probe.c
index 65cf0c9f..6d6d8c54 100644
--- a/src/radeon_probe.c
+++ b/src/radeon_probe.c
@@ -127,11 +127,8 @@ radeon_get_scrninfo(int entity_num, void *pci_dev)
if (!pScrn)
return FALSE;
- if (pci_dev) {
- if (!radeon_kernel_mode_enabled(pScrn, pci_dev)) {
+ if (!radeon_kernel_mode_enabled(pScrn, pci_dev))
return FALSE;
- }
- }
pScrn->driverVersion = RADEON_VERSION_CURRENT;
pScrn->driverName = RADEON_DRIVER_NAME;