projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d139977
)
nfsd4: remove redundant check from nfsd4_check_resp_size
author
J. Bruce Fields
<bfields@redhat.com>
Fri, 21 Mar 2014 01:01:07 +0000
(21:01 -0400)
committer
J. Bruce Fields
<bfields@redhat.com>
Sat, 29 Mar 2014 01:24:54 +0000
(21:24 -0400)
cstate->slot and ->session are each set together in nfsd4_sequence. If
one is non-NULL, so is the other.
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4xdr.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfsd/nfs4xdr.c
b/fs/nfsd/nfs4xdr.c
index 2708fae3cc27eb05624dee15dcf9f8ff2c4dc94e..94b7f19d2718bcf1d8822215bf9e0b75845efe44 100644
(file)
--- a/
fs/nfsd/nfs4xdr.c
+++ b/
fs/nfsd/nfs4xdr.c
@@
-3583,8
+3583,6
@@
__be32 nfsd4_check_resp_size(struct nfsd4_compoundres *resp, u32 pad)
return 0;
session = resp->cstate.session;
- if (session == NULL)
- return 0;
if (xb->page_len == 0) {
length = (char *)resp->p - (char *)xb->head[0].iov_base + pad;