Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1bed92cb authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

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: default avatarJ. Bruce Fields <bfields@redhat.com>
parent d139977d
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;