ACPI: Test for ACPI_SUCCESS rather than !ACPI_FAILURE
authorBjorn Helgaas <bhelgaas@google.com>
Tue, 26 Jan 2021 20:23:17 +0000 (14:23 -0600)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 27 Jan 2021 17:43:07 +0000 (18:43 +0100)
commit10e927249c4f78b25c4941eda93548aeaad04a46
treeff611ae1e1bbc07a0671e687b36086569ffa640f
parent0f39ee8324e75c9d370e84a61323ceb194641a18
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 <bhelgaas@google.com>
Acked-by: Guenter Roeck <linux@roeck-us.net>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
drivers/gpu/drm/radeon/radeon_bios.c
drivers/hwmon/acpi_power_meter.c
drivers/platform/x86/asus-laptop.c
drivers/spi/spi.c
sound/pci/hda/hda_intel.c