commit | 7e7ba9b3d46d47e9f75cbf9d5392583a958a9807 | [log] [tgz] |
---|---|---|
author | Andy Shevchenko <andy.shevchenko@gmail.com> | Tue May 18 09:48:43 2021 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu May 27 15:48:12 2021 +0200 |
tree | 392d27244aa24065ef014594d7ee1cf220d20367 | |
parent | 0d71f80b1898311420b4d07183a1e693c9b20c9e [diff] |
device property: Don't check for NULL twice in the loops In fwnode_get_next_available_child_node() we check next_child for NULL twice. All the same in fwnode_get_next_parent_dev() we may avoid checking fwnode for NULL twice. Signed-off-by: Andy Shevchenko <andy.shevchenko@gmail.com> Link: https://lore.kernel.org/r/20210518064843.3524015-1-andy.shevchenko@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>