mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
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:
parent
903a7d37d9
commit
573954a996
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user