Commit 6f035c99 authored by Chuck Lever's avatar Chuck Lever
Browse files

NFSD: Clean up unused variable



@sb should have been removed by commit 7e64c5bc ("NLM/NFSD: Fix
lock notifications for async-capable filesystems").

Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Reviewed-by: default avatarBenjamin Coddington <bcodding@redhat.com>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 6e1d75f7
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -7962,7 +7962,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
	struct nfsd4_blocked_lock *nbl = NULL;
	struct file_lock *file_lock = NULL;
	struct file_lock *conflock = NULL;
	struct super_block *sb;
	__be32 status = 0;
	int lkflg;
	int err;
@@ -7982,7 +7981,6 @@ nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate,
	status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0);
	if (status != nfs_ok)
		return status;
	sb = cstate->current_fh.fh_dentry->d_sb;

	if (lock->lk_is_new) {
		if (nfsd4_has_session(cstate))