OSDN Git Service

ACPI: scan: Change acpi_scan_init() return value type to void
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 11 Jan 2022 16:50:22 +0000 (17:50 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 12 Jan 2022 14:58:49 +0000 (15:58 +0100)
commitb6c55b162bcee62c43c18e59f38a4590be543032
treeb8d8f8533196d403bbec1332a2d4155885022e08
parentbca21755b9fc00dbe371994b53389eb5d70b8e72
ACPI: scan: Change acpi_scan_init() return value type to void

The only caller of acpi_scan_init(), acpi_init(), doesn't check its
return value, so turn it into a void function.

This avoids complaints from the Smatch static checker that the
function should return a negative error code when it fails, which
is not really a problem in this particular case.

No intentional functional impact.

Link: https://lore.kernel.org/linux-acpi/20220106082317.GA9123@kili/
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
drivers/acpi/internal.h
drivers/acpi/scan.c