ACPI: scan: Use standard error checking pattern
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 25 Mar 2024 12:33:02 +0000 (14:33 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 4 Apr 2024 19:19:02 +0000 (21:19 +0200)
commit602401e32847f90c513df4a34bcac4dd6b02dd8d
treec60c2939a61e4c578e50770dc0ee0c11e5852d5f
parente80d4122df9c707ebc9cfe20ab60be302fc9b833
ACPI: scan: Use standard error checking pattern

Check for an error and return it as it's the usual way to handle this.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/scan.c