Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drm/vc4: bo: Fix unused variable warning

Commit 07a2975c65f2 ("drm/vc4: bo: Fix drmm_mutex_init memory hog")
removed the only use of the ret variable, but didn't remove the
variable itself leading to a unused variable warning.

Remove that variable.

Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Fixes: 07a2975c65f2 ("drm/vc4: bo: Fix drmm_mutex_init memory hog")
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20230113154637.1704116-1-maxime@cerno.tech

-1
-1
drivers/gpu/drm/vc4/vc4_bo.c
··· 395 395 { 396 396 struct vc4_dev *vc4 = to_vc4_dev(dev); 397 397 struct vc4_bo *bo; 398 - int ret; 399 398 400 399 if (WARN_ON_ONCE(vc4->is_vc5)) 401 400 return ERR_PTR(-ENODEV);