drm: rcar-du: Fix a NULL vs IS_ERR() bug
authorDan Carpenter <error27@gmail.com>
Mon, 27 Feb 2023 10:06:59 +0000 (13:06 +0300)
committerLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Sat, 25 Mar 2023 20:38:10 +0000 (22:38 +0200)
commit40f43730f43699ce8557e4fe59622d4f4b69f44a
tree6fc0d74450a90699d5ca858cc4c5f603905cf1fb
parent944eb068879f297af5470b7d9ffc58d7be3c6df3
drm: rcar-du: Fix a NULL vs IS_ERR() bug

The drmm_encoder_alloc() function returns error pointers.  It never
returns NULL.  Fix the check accordingly.

Fixes: 7a1adbd23990 ("drm: rcar-du: Use drmm_encoder_alloc() to manage encoder")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
drivers/gpu/drm/rcar-du/rcar_du_encoder.c