drm/auth: remove redundant assignment to variable ret
Subsystems (3)
PATCH 1/1 drm/auth: remove redundant assignment to variable ret
From: Colin Ian King <[email protected]>
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 <[email protected]>
--- drivers/gpu/drm/drm_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/drm_auth.c +1 -1
@@ -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);
Signature · 1 line
2.25.1
Daniel Vetter
AppliedQuoted 8 lines · Colin King
From: Colin Ian King <[email protected]>
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 <[email protected]>
Queued up, but probably for 5.9. Thanks for your patch. -Daniel
Quoted 20 lines
--- drivers/gpu/drm/drm_auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/drm_auth.c +1
-1@@ -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);Signature · 1 line
2.25.1
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch