aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nfsd/nfs4xdr.c
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@redhat.com>2014-03-20 21:01:07 -0400
committerJ. Bruce Fields <bfields@redhat.com>2014-03-28 21:24:54 -0400
commit1bed92cb3c7663240992f4d97cbe4d21783113a0 (patch)
treeb902d60a601f548ebbd1c34d1dad1c5d13a6ed07 /fs/nfsd/nfs4xdr.c
parentd139977d002e34d687e2ebc1157a234d32183465 (diff)
nfsd4: remove redundant check from nfsd4_check_resp_size
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>
Diffstat (limited to 'fs/nfsd/nfs4xdr.c')
-rw-r--r--fs/nfsd/nfs4xdr.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4xdr.c b/fs/nfsd/nfs4xdr.c
index 2708fae3cc27..94b7f19d2718 100644
--- 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)
3583 return 0; 3583 return 0;
3584 3584
3585 session = resp->cstate.session; 3585 session = resp->cstate.session;
3586 if (session == NULL)
3587 return 0;
3588 3586
3589 if (xb->page_len == 0) { 3587 if (xb->page_len == 0) {
3590 length = (char *)resp->p - (char *)xb->head[0].iov_base + pad; 3588 length = (char *)resp->p - (char *)xb->head[0].iov_base + pad;