Skip to content

Commit 573954a

Browse files
committed
xdrgen: Remove program_stat_to_errno() call sites
Refactor: Translating an on-the-wire value to a local host errno is architecturally a job for the proc function, not the XDR decoder. Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
1 parent 903a7d3 commit 573954a

File tree

1 file changed

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

1 file changed

+0
-2
lines changed

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ 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)
17-
return {{ program }}_stat_to_errno(result->stat);
1816
{% endif %}
1917
return 0;
2018
}

0 commit comments

Comments
 (0)