diff options
author | Alex Dewar <alex.dewar90@gmail.com> | 2020-08-12 15:12:51 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-09-25 18:01:27 -0400 |
commit | e2a1840e56a1ace8bce86bc7e40923b4b2748404 (patch) | |
tree | 4c2237d139fecd1fd15b8b8e4031d83d81998096 /fs/nfsd/nfs4xdr.c | |
parent | 1cc5213baada95155a25e59e21ef696aba1f8143 (diff) | |
download | linux-e2a1840e56a1ace8bce86bc7e40923b4b2748404.tar.bz2 |
nfsd: Remove unnecessary assignment in nfs4xdr.c
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>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r-- | fs/nfsd/nfs4xdr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c index 61ebc28cad9e..3d263fd20df0 100644 --- a/fs/nfsd/nfs4xdr.c +++ b/fs/nfsd/nfs4xdr.c @@ -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++; |