diff options
author | Maxime Ripard <maxime@cerno.tech> | 2023-01-13 18:46:37 +0300 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2023-01-13 19:37:48 +0300 |
commit | 83a7f8e4899fb4cd77c787a3373f3e82b49a080f (patch) | |
tree | 654e6c9ec4c15410934af2125b143722ca9e6682 /drivers/gpu | |
parent | 07a2975c65f2be2e22591d795a9c39b00f95fd11 (diff) | |
download | linux-83a7f8e4899fb4cd77c787a3373f3e82b49a080f.tar.xz |
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
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_bo.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_bo.c b/drivers/gpu/drm/vc4/vc4_bo.c index 29ce2fa72cc4..c5947ed8cc81 100644 --- a/drivers/gpu/drm/vc4/vc4_bo.c +++ b/drivers/gpu/drm/vc4/vc4_bo.c @@ -395,7 +395,6 @@ struct drm_gem_object *vc4_create_object(struct drm_device *dev, size_t size) { struct vc4_dev *vc4 = to_vc4_dev(dev); struct vc4_bo *bo; - int ret; if (WARN_ON_ONCE(vc4->is_vc5)) return ERR_PTR(-ENODEV); |