In case of error, the function syscon_node_to_regmap() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().
Fixes: 25348160e9a4 ("video: ARM CLCD: add special panel hook for Versatiles")
Signed-off-by: Wei Yongjun <redacted>
---
drivers/video/fbdev/amba-clcd-versatile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
On Sat, Aug 13, 2016 at 3:26 AM, Wei Yongjun [off-list ref] wrote:
In case of error, the function syscon_node_to_regmap() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().
Fixes: 25348160e9a4 ("video: ARM CLCD: add special panel hook for Versatiles")
Signed-off-by: Wei Yongjun <redacted>
Reviewed-by: Linus Walleij <redacted>
Thanks for fixing my stupid mistake Wei!
Yours,
Linus Walleij
From: Tomi Valkeinen <hidden> Date: 2016-08-30 08:37:43
On 13/08/16 04:26, Wei Yongjun wrote:
quoted hunk
In case of error, the function syscon_node_to_regmap() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().
Fixes: 25348160e9a4 ("video: ARM CLCD: add special panel hook for Versatiles")
Signed-off-by: Wei Yongjun <redacted>
---
drivers/video/fbdev/amba-clcd-versatile.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)