drm/etnaviv: fix error code in event_alloc()

There are two "ret" variables declared in this function so setting
"ret = -EBUSY;" sets the wrong one.  The function ends up returning an
uninitialized variable.

Fixes: f098f9b804 ("drm/etnaviv: move runtime PM handling to events")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
This commit is contained in:
Dan Carpenter 2023-07-19 13:17:56 +03:00 • committed by Lucas Stach
commit 88c31d2dd1