diff options
| author | Bjorn Helgaas <[email protected]> | 2021-01-26 20:23:17 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2021-01-27 17:43:07 +0000 |
| commit | 10e927249c4f78b25c4941eda93548aeaad04a46 (patch) | |
| tree | ff611ae1e1bbc07a0671e687b36086569ffa640f /drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | |
| parent | ACPI: Use DEVICE_ATTR_<RW|RO|WO> macros (diff) | |
| download | kernel-10e927249c4f78b25c4941eda93548aeaad04a46.tar.gz kernel-10e927249c4f78b25c4941eda93548aeaad04a46.zip | |
ACPI: Test for ACPI_SUCCESS rather than !ACPI_FAILURE
The double negative makes it hard to read "if (!ACPI_FAILURE(status))".
Replace it with "if (ACPI_SUCCESS(status))".
Signed-off-by: Bjorn Helgaas <[email protected]>
Acked-by: Guenter Roeck <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Acked-by: Takashi Iwai <[email protected]>
Acked-by: Mark Brown <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c index 6333cada1e09..055f600eeed8 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c @@ -291,7 +291,7 @@ static bool amdgpu_atrm_get_bios(struct amdgpu_device *adev) continue; status = acpi_get_handle(dhandle, "ATRM", &atrm_handle); - if (!ACPI_FAILURE(status)) { + if (ACPI_SUCCESS(status)) { found = true; break; } @@ -304,7 +304,7 @@ static bool amdgpu_atrm_get_bios(struct amdgpu_device *adev) continue; status = acpi_get_handle(dhandle, "ATRM", &atrm_handle); - if (!ACPI_FAILURE(status)) { + if (ACPI_SUCCESS(status)) { found = true; break; } |
