nfsd: remove unnecessary assertion in nfsd4_encode_replay

The replay variable is set in the only caller of nfsd4_encode_replay.
The assertion is unnecessary and the patch removes this check.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
Aditya Pakki 2019-12-17 16:50:47 -06:00 committed by J. Bruce Fields
parent 57f6403496
commit fc1b206595
1 changed files with 0 additions and 2 deletions

View File

@ -4649,8 +4649,6 @@ nfsd4_encode_replay(struct xdr_stream *xdr, struct nfsd4_op *op)
__be32 *p; __be32 *p;
struct nfs4_replay *rp = op->replay; struct nfs4_replay *rp = op->replay;
BUG_ON(!rp);
p = xdr_reserve_space(xdr, 8 + rp->rp_buflen); p = xdr_reserve_space(xdr, 8 + rp->rp_buflen);
if (!p) { if (!p) {
WARN_ON_ONCE(1); WARN_ON_ONCE(1);