Skip to content

Commit

Permalink
nfs: remove unnecessary check for NULL inode->i_flock from nfs_delega…
Browse files Browse the repository at this point in the history
…tion_claim_locks

The second check was added in commit 65b62a2 but it will never be true.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Jeff Layton authored and Trond Myklebust committed Apr 10, 2013
1 parent 7a8203d commit 314d7cc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions fs/nfs/delegation.c
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,9 @@ static int nfs_delegation_claim_locks(struct nfs_open_context *ctx, struct nfs4_
struct file_lock *fl;
int status = 0;

if (inode->i_flock == NULL)
return 0;

if (inode->i_flock == NULL)
goto out;

/* Protect inode->i_flock using the file locks lock */
lock_flocks();
for (fl = inode->i_flock; fl != NULL; fl = fl->fl_next) {
Expand Down

0 comments on commit 314d7cc

Please sign in to comment.