diff options
| author | Chuck Lever <chuck.lever@oracle.com> | 2024-10-22 13:44:01 -0400 |
|---|---|---|
| committer | Chuck Lever <chuck.lever@oracle.com> | 2024-11-18 20:23:06 -0500 |
| commit | 82c2a36179d9bd00b792f4215cc4f71ca2d4c3a8 (patch) | |
| tree | a2330f574114d71ab516bdc11e06c6f56cfb8286 | |
| parent | 07decac0ac6282672af182521ef0b4b61605c4b9 (diff) | |
xdrgen: Remove check for "nfs_ok" in C templates
Obviously, "nfs_ok" is defined only for NFS protocols. Other XDR
protocols won't know "nfs_ok" from Adam.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
| -rw-r--r-- | tools/net/sunrpc/xdrgen/templates/C/program/decoder/result.j2 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/sunrpc/xdrgen/templates/C/program/decoder/result.j2 b/tools/net/sunrpc/xdrgen/templates/C/program/decoder/result.j2 index 38c31b3f0589..4ce4cc9fab79 100644 --- a/tools/net/sunrpc/xdrgen/templates/C/program/decoder/result.j2 +++ b/tools/net/sunrpc/xdrgen/templates/C/program/decoder/result.j2 @@ -13,7 +13,7 @@ static int {{ program }}_xdr_dec_{{ result }}(struct rpc_rqst *req, if (!xdrgen_decode_{{ result }}(xdr, result)) return -EIO; - if (result->stat != nfs_ok) + if (result->stat) return {{ program }}_stat_to_errno(result->stat); {% endif %} return 0; |
