Skip to content

Commit

Permalink
NFS: Remove an extra if in _nfs4_recover_proc_open()
Browse files Browse the repository at this point in the history
It's simpler just to return the status unconditionally

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
  • Loading branch information
Anna Schumaker authored and Anna Schumaker committed Jan 30, 2017
1 parent 37a8484 commit d7e9825
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions fs/nfs/nfs4proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -2216,11 +2216,8 @@ static int _nfs4_recover_proc_open(struct nfs4_opendata *data)

nfs_fattr_map_and_free_names(NFS_SERVER(dir), &data->f_attr);

if (o_res->rflags & NFS4_OPEN_RESULT_CONFIRM) {
if (o_res->rflags & NFS4_OPEN_RESULT_CONFIRM)
status = _nfs4_proc_open_confirm(data);
if (status != 0)
return status;
}

return status;
}
Expand Down

0 comments on commit d7e9825

Please sign in to comment.