projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c72a826
)
sunrpc: Remove unneeded null check
author
Xu Wang
<vulab@iscas.ac.cn>
Wed, 10 Nov 2021 09:32:17 +0000
(09:32 +0000)
committer
Anna Schumaker
<Anna.Schumaker@Netapp.com>
Thu, 6 Jan 2022 19:00:20 +0000
(14:00 -0500)
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>
net/sunrpc/auth_gss/gss_generic_token.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/auth_gss/gss_generic_token.c
b/net/sunrpc/auth_gss/gss_generic_token.c
index fe97f31065367e633659fee5fc57dc2a15948e07..4a4082bb22ada4ee8f3f9d3d76eb0461afa5874c 100644
(file)
--- a/
net/sunrpc/auth_gss/gss_generic_token.c
+++ b/
net/sunrpc/auth_gss/gss_generic_token.c
@@
-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;
}