rpc: remove redundant initialization of variable status
authorColin Ian King <colin.king@canonical.com>
Sun, 13 Jun 2021 14:06:52 +0000 (15:06 +0100)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 21 Jun 2021 16:06:16 +0000 (12:06 -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: Trond Myklebust <trond.myklebust@hammerspace.com>
net/sunrpc/auth_gss/svcauth_gss.c

index 6dff643..a81be45 100644 (file)
@@ -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 */