]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: bo: Fix unused variable warning
authorMaxime Ripard <maxime@cerno.tech>
Fri, 13 Jan 2023 15:46:37 +0000 (16:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 Feb 2023 07:34:17 +0000 (08:34 +0100)
commit9bff8d1f36ac587e517941a7249fe05416731712
tree4f3964d711eb2983d1a03836e13fe626c8a90619
parent9cf325fc4efa479c7d1f52fadf303e604b51ac1c
drm/vc4: bo: Fix unused variable warning

[ Upstream commit 83a7f8e4899fb4cd77c787a3373f3e82b49a080f ]

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
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/vc4/vc4_bo.c