projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5823e40
)
rpc: remove redundant initialization of variable status
author
Colin Ian King
<colin.king@canonical.com>
Sun, 13 Jun 2021 14:06:52 +0000
(15:06 +0100)
committer
J. Bruce Fields
<bfields@redhat.com>
Wed, 7 Jul 2021 00:14:42 +0000
(20:14 -0400)
The variable status is being initialized with a value that is never
read, the assignment is redundant and can be removed.
Addresses-Coverity: ("Unused value")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/svcauth_gss.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/auth_gss/svcauth_gss.c
b/net/sunrpc/auth_gss/svcauth_gss.c
index
6dff643
..
a81be45
100644
(file)
--- a/
net/sunrpc/auth_gss/svcauth_gss.c
+++ b/
net/sunrpc/auth_gss/svcauth_gss.c
@@
-1275,7
+1275,7
@@
static int gss_proxy_save_rsc(struct cache_detail *cd,
long long ctxh;
struct gss_api_mech *gm = NULL;
time64_t expiry;
- int status
= -EINVAL
;
+ int status;
memset(&rsci, 0, sizeof(rsci));
/* context handle */