ACPI: Use IS_ERR_OR_NULL() instead of non-NULL check in is_acpi_data_node()
authorSakari Ailus <sakari.ailus@linux.intel.com>
Fri, 21 Jul 2017 11:39:30 +0000 (14:39 +0300)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 21 Jul 2017 22:04:49 +0000 (00:04 +0200)
commitb81b729164445cd94c4dd6fc4d6f10487434df4a
tree095637156e6a333971cbc244adc68853d80a1fc8
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
ACPI: Use IS_ERR_OR_NULL() instead of non-NULL check in is_acpi_data_node()

The is_acpi_data_node() function takes a struct fwnode_handle pointer as
its argument. The validity of the pointer is first checked. Extend the
check to cover error values as is done by similar is_acpi_node() and
is_acpi_device_node() functions.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
include/acpi/acpi_bus.h