NFSD: Remove unused values from nfsd4_encode_components_esc()

Clean up. The computed value of @p is saved each time through the
loop but is never used.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
Chuck Lever 2024-10-17 11:03:55 -04:00
parent 6b9c1080a6
commit 30c1d2411a

View File

@ -2652,13 +2652,10 @@ static __be32 nfsd4_encode_components_esc(struct xdr_stream *xdr, char sep,
strlen = end - str;
if (strlen) {
p = xdr_reserve_space(xdr, strlen + 4);
if (!p)
if (xdr_stream_encode_opaque(xdr, str, strlen) < 0)
return nfserr_resource;
p = xdr_encode_opaque(p, str, strlen);
count++;
}
else
} else
end++;
if (found_esc)
end = next;