Files
erofs-linux/tools/net/sunrpc
Sergey Bashirov c97b737ef8 sunrpc: Change ret code of xdr_stream_decode_opaque_fixed
Since the opaque is fixed in size, the caller already knows how many
bytes were decoded, on success. Thus, xdr_stream_decode_opaque_fixed()
doesn't need to return that value. And, xdr_stream_decode_u32 and _u64
both return zero on success.

This patch simplifies the caller's error checking to avoid potential
integer promotion issues.

Suggested-by: Dan Carpenter <[email protected]>
Signed-off-by: Sergey Bashirov <[email protected]>
Signed-off-by: Chuck Lever <[email protected]>
2025-09-21 19:24:50 -04:00
..