amdgpu_kms: Remove unnecessary condition check
Execution will only reach here if the asserted condition is true. Hence there is no need for the additional check. Signed-off-by: Aurabindo Pillai <mail@aurabindo.in> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
committed by
Alex Deucher
parent
ef91e8b5c8
commit
ad36d71b3f
@@ -183,12 +183,10 @@ int amdgpu_driver_load_kms(struct drm_device *dev, unsigned long flags)
|
|||||||
/* Call ACPI methods: require modeset init
|
/* Call ACPI methods: require modeset init
|
||||||
* but failure is not fatal
|
* but failure is not fatal
|
||||||
*/
|
*/
|
||||||
if (!r) {
|
|
||||||
acpi_status = amdgpu_acpi_init(adev);
|
acpi_status = amdgpu_acpi_init(adev);
|
||||||
if (acpi_status)
|
if (acpi_status)
|
||||||
dev_dbg(&dev->pdev->dev,
|
dev_dbg(&dev->pdev->dev, "Error during ACPI methods call\n");
|
||||||
"Error during ACPI methods call\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (adev->runpm) {
|
if (adev->runpm) {
|
||||||
dev_pm_set_driver_flags(dev->dev, DPM_FLAG_NEVER_SKIP);
|
dev_pm_set_driver_flags(dev->dev, DPM_FLAG_NEVER_SKIP);
|
||||||
|
|||||||
Reference in New Issue
Block a user