diff options
| author | 2025-07-18 11:09:56 +0300 | |
|---|---|---|
| committer | 2025-09-21 19:24:50 -0400 | |
| commit | c97b737ef8f10f28424822c139e3b22b9e9bcc2b (patch) | |
| tree | 05d138434e690d17f9cbb35197e5d2c2bb61fcfd /scripts/basic/git:/ssh:/git@git.zx2c4.com | |
| parent | nfsd: discard nfsd_file_get_local() (diff) | |
| download | wireguard-linux-c97b737ef8f10f28424822c139e3b22b9e9bcc2b.tar.xz wireguard-linux-c97b737ef8f10f28424822c139e3b22b9e9bcc2b.zip | |
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 <dan.carpenter@linaro.org>
Signed-off-by: Sergey Bashirov <sergeybashirov@gmail.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'scripts/basic/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
