]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xdrgen: Remove program_stat_to_errno() call sites
authorChuck Lever <chuck.lever@oracle.com>
Tue, 22 Oct 2024 17:44:15 +0000 (13:44 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Tue, 19 Nov 2024 01:23:07 +0000 (20:23 -0500)
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>
tools/net/sunrpc/xdrgen/templates/C/program/decoder/result.j2

index 4ce4cc9fab7967d3f50b272b2db650c98c1ba317..aa9940e322db9bcdc6c7e4ce774f5c7519dd3f0e 100644 (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;
 }