drm/vc4: Simplify a bit the global atomic_check
authorMaxime Ripard <maxime@cerno.tech>
Fri, 4 Dec 2020 15:11:34 +0000 (16:11 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 15 Dec 2020 10:33:29 +0000 (11:33 +0100)
commitd62a8ed7671ee1deaabe339df3703f8dff56183b
tree8fe5eb210f790c1fe1e0693db47c1ce8cf49e6b9
parent27125e86b797deea4c42dc35fb0a71fd1d5ae53a
drm/vc4: Simplify a bit the global atomic_check

When we can't allocate a new channel, we can simply return instead of
having to handle both cases, and that simplifies a bit the code.

Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20201204151138.1739736-4-maxime@cerno.tech
drivers/gpu/drm/vc4/vc4_kms.c