sunrpc: Remove unneeded null check

In g_verify_token_header, the null check of 'ret'
is unneeded to be done twice.

Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
Xu Wang
2022-01-06 14:00:20 -05:00
committed by Anna Schumaker
parent c72a826829
commit 35e0f9a9af
+2 -4
View File
@@ -222,10 +222,8 @@ g_verify_token_header(struct xdr_netobj *mech, int *body_size,
if (ret)
return ret;
if (!ret) {
*buf_in = buf;
*body_size = toksize;
}
*buf_in = buf;
*body_size = toksize;
return ret;
}