Skip to content

Commit 83a7f8e

Browse files
committed
drm/vc4: bo: Fix unused variable warning
Commit 07a2975 ("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 <[email protected]> Fixes: 07a2975 ("drm/vc4: bo: Fix drmm_mutex_init memory hog") Reviewed-by: Maíra Canal <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 07a2975 commit 83a7f8e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpu/drm/vc4/vc4_bo.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,6 @@ struct drm_gem_object *vc4_create_object(struct drm_device *dev, size_t size)
395395
{
396396
struct vc4_dev *vc4 = to_vc4_dev(dev);
397397
struct vc4_bo *bo;
398-
int ret;
399398

400399
if (WARN_ON_ONCE(vc4->is_vc5))
401400
return ERR_PTR(-ENODEV);

0 commit comments

Comments
 (0)