]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/vc4: plane: Use return variable in atomic_check
authorMaxime Ripard <mripard@kernel.org>
Fri, 21 Jun 2024 15:20:36 +0000 (16:20 +0100)
committerDave Stevenson <dave.stevenson@raspberrypi.com>
Mon, 9 Sep 2024 12:02:53 +0000 (13:02 +0100)
commit5171d86a62658dbcb9876fae87e1132320e9a83a
tree75f1952adb7315dc3e687a1dfc0645f6eea97ec1
parentf18029bdf2e85d281b6e1a79c33daf84b5730e59
drm/vc4: plane: Use return variable in atomic_check

The vc4_plane_atomic_check() directly returns the result of the final
function it calls.

Using the already defined ret variable to check its content on error,
and a separate return 0 on success, makes it easier to extend.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
Reviewed-by: Maxime Ripard <mripard@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240621152055.4180873-13-dave.stevenson@raspberrypi.com
Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/gpu/drm/vc4/vc4_plane.c