Skip to content

Commit

Permalink
ACPI: property: Return type of acpi_add_nondev_subnodes() should be bool
Browse files Browse the repository at this point in the history
The value acpi_add_nondev_subnodes() returns is bool so change the return
type of the function to match that.

Fixes: 445b0eb ("ACPI / property: Add support for data-only subnodes")
Signed-off-by: Sakari Ailus <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
  • Loading branch information
Sakari Ailus authored and rafaeljw committed Jul 27, 2022
1 parent e0dccc3 commit 85140ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/acpi/property.c
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ static bool acpi_nondev_subnode_ok(acpi_handle scope,
return acpi_nondev_subnode_data_ok(handle, link, list, parent);
}

static int acpi_add_nondev_subnodes(acpi_handle scope,
const union acpi_object *links,
struct list_head *list,
struct fwnode_handle *parent)
static bool acpi_add_nondev_subnodes(acpi_handle scope,
const union acpi_object *links,
struct list_head *list,
struct fwnode_handle *parent)
{
bool ret = false;
int i;
Expand Down

0 comments on commit 85140ef

Please sign in to comment.