Re: [PATCH] bus: arm-integrator-lm: Fix an IS_ERR() vs NULL check

2020-05-25 Thread Linus Walleij
Hi Dan, On Wed, May 20, 2020 at 2:08 PM Dan Carpenter wrote: > The of_find_matching_node() function returns NULL on error, it never > returns error pointers. This doesn't really impact runtime very much > because if "syscon" is NULL then syscon_node_to_regmap() will return > -EINVAL. The only

[PATCH] bus: arm-integrator-lm: Fix an IS_ERR() vs NULL check

2020-05-20 Thread Dan Carpenter
The of_find_matching_node() function returns NULL on error, it never returns error pointers. This doesn't really impact runtime very much because if "syscon" is NULL then syscon_node_to_regmap() will return -EINVAL. The only runtime difference is that now it returns -ENODEV. Fixes: ccea5e8a5918