nfsd: Remove unnecessary assignment in nfs4xdr.c
authorAlex Dewar <alex.dewar90@gmail.com>
Wed, 12 Aug 2020 14:12:51 +0000 (15:12 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 25 Sep 2020 22:01:27 +0000 (18:01 -0400)
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>
fs/nfsd/nfs4xdr.c

index 61ebc28cad9e500fc75bdcd02330eacf3a6a4d9a..3d263fd20df08cdbff2eb8fdc29487f4beeab7cb 100644 (file)
@@ -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++;