mirror of
https://github.com/torvalds/linux
synced 2024-10-15 07:47:34 +00:00
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:
parent
c72a826829
commit
35e0f9a9af
|
@ -222,10 +222,8 @@ g_verify_token_header(struct xdr_netobj *mech, int *body_size,
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
if (!ret) {
|
*buf_in = buf;
|
||||||
*buf_in = buf;
|
*body_size = toksize;
|
||||||
*body_size = toksize;
|
|
||||||
}
|
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue