]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/auth: remove redundant assignment to variable ret
authorColin Ian King <colin.king@canonical.com>
Sun, 24 May 2020 22:27:15 +0000 (23:27 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 25 May 2020 14:35:52 +0000 (16:35 +0200)
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
drivers/gpu/drm/drm_auth.c

index 800ac39f3213df4f55304be6bbe5282f9ee3f768..74ce0c29c960a9537565894b401fb6a493e476e2 100644 (file)
@@ -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);