Commit 573954a9 authored by Chuck Lever's avatar Chuck Lever
Browse files

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: default avatarChuck Lever <chuck.lever@oracle.com>
parent 903a7d37
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;
}