aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/fs/nfsd
diff options
context:
space:
mode:
authorAditya Pakki <pakki001@umn.edu>2019-12-17 16:50:47 -0600
committerJ. Bruce Fields <bfields@redhat.com>2019-12-19 17:46:08 -0500
commitfc1b20659597015a30e8ea032f168e97848c1d39 (patch)
tree0ca6aa2b67e11d544211a18df813ae97717b80e4 /fs/nfsd
parentnfsd: Clone should commit src file metadata too (diff)
downloadwireguard-linux-fc1b20659597015a30e8ea032f168e97848c1d39.tar.xz
wireguard-linux-fc1b20659597015a30e8ea032f168e97848c1d39.zip
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>
Diffstat (limited to 'fs/nfsd')
-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 1d8a08b84e32..85949fd6ae7f 100644
--- a/fs/nfsd/nfs4xdr.c
+++ b/fs/nfsd/nfs4xdr.c
@@ -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);