From a9b181083d56b5de9b6822d0ed89fcc86de777a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Tue, 16 Feb 2016 16:59:40 +0900 Subject: Remove pci_dev test from radeon_get_scrninfo The pci_dev parameter can never be NULL since we only support KMS. Reported-by: Tom St Denis (ported from amdgpu commit 6e42c58375a4c3229da93c27bbd104af145c6163) Reviewed-by: Alex Deucher --- src/radeon_probe.c | 5 +---- 1 file changed, 1 insertion(+), 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; -- cgit v1.2.3