]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
nfsd: remove unnecessary assertion in nfsd4_encode_replay
authorAditya Pakki <pakki001@umn.edu>
Tue, 17 Dec 2019 22:50:47 +0000 (16:50 -0600)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 19 Dec 2019 22:46:08 +0000 (17:46 -0500)
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>
fs/nfsd/nfs4xdr.c

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