Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

+2 -5
+2 -5
fs/nfsd/nfs4xdr.c
··· 2652 2652 2653 2653 strlen = end - str; 2654 2654 if (strlen) { 2655 - p = xdr_reserve_space(xdr, strlen + 4); 2656 - if (!p) 2655 + if (xdr_stream_encode_opaque(xdr, str, strlen) < 0) 2657 2656 return nfserr_resource; 2658 - p = xdr_encode_opaque(p, str, strlen); 2659 2657 count++; 2660 - } 2661 - else 2658 + } else 2662 2659 end++; 2663 2660 if (found_esc) 2664 2661 end = next;