Skip to content

Commit

Permalink
nfsd: Remove unnecessary assignment in nfs4xdr.c
Browse files Browse the repository at this point in the history
In nfsd4_encode_listxattrs(), the variable p is assigned to at one point
but this value is never used before p is reassigned. Fix this.

Addresses-Coverity: ("Unused value")
Signed-off-by: Alex Dewar <alex.dewar90@gmail.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
  • Loading branch information
alexdewar authored and J. Bruce Fields committed Sep 25, 2020
1 parent 1cc5213 commit e2a1840
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/nfs4xdr.c
Original file line number Diff line number Diff line change
Expand Up @@ -4859,7 +4859,7 @@ nfsd4_encode_listxattrs(struct nfsd4_compoundres *resp, __be32 nfserr,
goto out;
}

p = xdr_encode_opaque(p, sp, slen);
xdr_encode_opaque(p, sp, slen);

xdrleft -= xdrlen;
count++;
Expand Down

0 comments on commit e2a1840

Please sign in to comment.