summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_auth.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-25 00:27:15 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2020-05-25 16:35:52 +0200
commit2217d3bc39b49ad8a64bb3f021e8a6ed253c0d8a (patch)
tree30e497897a3fae2b841583c100b8feac22919101 /drivers/gpu/drm/drm_auth.c
parentdrm/vblank: Fix -Wformat compile warnings on some arches (diff)
downloadlinux-2217d3bc39b49ad8a64bb3f021e8a6ed253c0d8a.tar.xz
linux-2217d3bc39b49ad8a64bb3f021e8a6ed253c0d8a.zip
drm/auth: remove redundant assignment to variable ret
The variable ret is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Link: https://patchwork.freedesktop.org/patch/msgid/20200524222715.27305-1-colin.king@canonical.com
Diffstat (limited to 'drivers/gpu/drm/drm_auth.c')
-rw-r--r--drivers/gpu/drm/drm_auth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c
index 800ac39f3213..74ce0c29c960 100644
--- a/drivers/gpu/drm/drm_auth.c
+++ b/drivers/gpu/drm/drm_auth.c
@@ -282,7 +282,7 @@ static void drm_drop_master(struct drm_device *dev,
int drm_dropmaster_ioctl(struct drm_device *dev, void *data,
struct drm_file *file_priv)
{
- int ret = -EINVAL;
+ int ret;
mutex_lock(&dev->master_mutex);