diff options
author | Sakari Ailus <[email protected]> | 2017-07-21 14:39:30 +0300 |
---|---|---|
committer | Rafael J. Wysocki <[email protected]> | 2017-07-22 00:04:49 +0200 |
commit | b81b729164445cd94c4dd6fc4d6f10487434df4a (patch) | |
tree | 095637156e6a333971cbc244adc68853d80a1fc8 /tools/perf/util/trace-event-scripting.c | |
parent | 5771a8c08880cdca3bfb4a3fc6d309d6bba20877 (diff) |
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 <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions