Skip to content

Commit e34c0ce

Browse files
Colin Ian KingJ. Bruce Fields
authored andcommitted
nfsd: remove redundant assignment to pointer 'this'
The pointer 'this' 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]> Signed-off-by: J. Bruce Fields <[email protected]>
1 parent 474bc33 commit e34c0ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/nfsd/nfs4proc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3374,7 +3374,7 @@ bool nfsd4_spo_must_allow(struct svc_rqst *rqstp)
33743374
{
33753375
struct nfsd4_compoundres *resp = rqstp->rq_resp;
33763376
struct nfsd4_compoundargs *argp = rqstp->rq_argp;
3377-
struct nfsd4_op *this = &argp->ops[resp->opcnt - 1];
3377+
struct nfsd4_op *this;
33783378
struct nfsd4_compound_state *cstate = &resp->cstate;
33793379
struct nfs4_op_map *allow = &cstate->clp->cl_spo_must_allow;
33803380
u32 opiter;

0 commit comments

Comments
 (0)