From: Chuck Lever Date: Tue, 22 Oct 2024 17:44:15 +0000 (-0400) Subject: xdrgen: Remove program_stat_to_errno() call sites X-Git-Tag: v6.13-rc1~76^2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=573954a996c0056b25eda4638edfee8c010e27f7;p=thirdparty%2Fkernel%2Flinux.git 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 --- 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 4ce4cc9fab796..aa9940e322db9 100644 --- a/tools/net/sunrpc/xdrgen/templates/C/program/decoder/result.j2 +++ b/tools/net/sunrpc/xdrgen/templates/C/program/decoder/result.j2 @@ -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; }