Commit 35e0f9a9 authored by vulab's avatar vulab Committed by Anna Schumaker
Browse files

sunrpc: Remove unneeded null check



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

Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent c72a8268
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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;
	}

	return ret;
}