]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm: rcar-du: fix incorrect return in rcar_du_crtc_cleanup()
authorAlok Tiwari <alok.a.tiwari@oracle.com>
Fri, 17 Oct 2025 19:16:21 +0000 (12:16 -0700)
committerTomi Valkeinen <tomi.valkeinen@ideasonboard.com>
Wed, 5 Nov 2025 09:17:26 +0000 (11:17 +0200)
The rcar_du_crtc_cleanup() function has a void return type, but
incorrectly uses a return statement with a call to drm_crtc_cleanup(),
which also returns void.

Remove the return statement to ensure proper function semantics.
No functional change intended.

Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham+renesas@ideasonboard.com>
Link: https://patch.msgid.link/20251017191634.1454201-1-alok.a.tiwari@oracle.com
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ideasonboard.com>
drivers/gpu/drm/renesas/rcar-du/rcar_du_crtc.c

index 289f245c517eb7931e3f84acd71d5307da1fefbb..2e2906ab750b470bf0ef38b03063fc090bf473b7 100644 (file)
@@ -994,7 +994,7 @@ static void rcar_du_crtc_cleanup(struct drm_crtc *crtc)
 
        rcar_du_crtc_crc_cleanup(rcrtc);
 
-       return drm_crtc_cleanup(crtc);
+       drm_crtc_cleanup(crtc);
 }
 
 static void rcar_du_crtc_reset(struct drm_crtc *crtc)