Skip to content

Commit 82c2a36

Browse files
committed
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>
1 parent 07decac commit 82c2a36

File tree

1 file changed

+1
-1
lines changed
  • tools/net/sunrpc/xdrgen/templates/C/program/decoder

1 file changed

+1
-1
lines changed

tools/net/sunrpc/xdrgen/templates/C/program/decoder/result.j2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ static int {{ program }}_xdr_dec_{{ result }}(struct rpc_rqst *req,
1313

1414
if (!xdrgen_decode_{{ result }}(xdr, result))
1515
return -EIO;
16-
if (result->stat != nfs_ok)
16+
if (result->stat)
1717
return {{ program }}_stat_to_errno(result->stat);
1818
{% endif %}
1919
return 0;

0 commit comments

Comments
 (0)