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>
This commit is contained in:
Chuck Lever 2024-10-22 13:44:15 -04:00
parent 903a7d37d9
commit 573954a996

View File

@ -13,8 +13,6 @@ static int {{ program }}_xdr_dec_{{ result }}(struct rpc_rqst *req,
if (!xdrgen_decode_{{ result }}(xdr, result))
return -EIO;
if (result->stat)
return {{ program }}_stat_to_errno(result->stat);
{% endif %}
return 0;
}