diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2017-05-24 16:53:54 +0200 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2017-06-01 15:50:47 +0200 |
commit | debd3a3b27c76c65a7d032b6f01710e6a6d555ab (patch) | |
tree | bd872b01ad8b51c6a69eaf18e2bac10375c9c20c /drivers/of/base.c | |
parent | of: Move OF property and graph API from base.c to property.c (diff) | |
download | linux-debd3a3b27c76c65a7d032b6f01710e6a6d555ab.tar.xz linux-debd3a3b27c76c65a7d032b6f01710e6a6d555ab.zip |
of: Make of_fwnode_handle() safer
On the expense of a little bit more complexity in the of_fwnode_handle()
macro, make the macro result in NULL in case its argument is NULL while
still referencing it only once.
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/base.c')
0 files changed, 0 insertions, 0 deletions