Skip to content

Commit bb24cc0

Browse files
Colin Ian KingTrond Myklebust
authored andcommitted
rpc: remove redundant initialization of variable status
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: Trond Myklebust <trond.myklebust@hammerspace.com>
1 parent 6d1c0f3 commit bb24cc0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎net/sunrpc/auth_gss/svcauth_gss.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1275,7 +1275,7 @@ static int gss_proxy_save_rsc(struct cache_detail *cd,
12751275
long long ctxh;
12761276
struct gss_api_mech *gm = NULL;
12771277
time64_t expiry;
1278-
int status = -EINVAL;
1278+
int status;
12791279

12801280
memset(&rsci, 0, sizeof(rsci));
12811281
/* context handle */

0 commit comments

Comments
 (0)