diff options
author | Michel Dänzer <michel.daenzer@amd.com> | 2016-02-16 16:59:40 +0900 |
---|---|---|
committer | Michel Dänzer <michel@daenzer.net> | 2016-02-17 11:42:34 +0900 |
commit | a9b181083d56b5de9b6822d0ed89fcc86de777a6 (patch) | |
tree | c138047b252336c5b08af80a74887c69715c0b8c /src | |
parent | 2c7f068b0a0493daae86e5eacdf8d9812fcd28dc (diff) |
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 <tom.stdenis@amd.com>
(ported from amdgpu commit 6e42c58375a4c3229da93c27bbd104af145c6163)
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/radeon_probe.c | 5 |
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; |