mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-01 10:42:11 +00:00
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:
parent
6b9c1080a6
commit
30c1d2411a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user