projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d81fe1
)
drm/auth: remove redundant assignment to variable ret
author
Colin Ian King
<colin.king@canonical.com>
Sun, 24 May 2020 22:27:15 +0000
(23:27 +0100)
committer
Daniel 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
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/drm_auth.c
b/drivers/gpu/drm/drm_auth.c
index
800ac39
..
74ce0c2
100644
(file)
--- 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);