From: J. Bruce Fields Date: Fri, 21 Mar 2014 01:01:07 +0000 (-0400) Subject: nfsd4: remove redundant check from nfsd4_check_resp_size X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1bed92cb3c7663240992f4d97cbe4d21783113a0;p=linux-beck.git 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 --- 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) 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;