diff options
author | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-01-11 16:13:29 -0500 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2017-01-30 13:14:50 -0500 |
commit | d7e9825848cede4cf7589b63029b76428ae76958 (patch) | |
tree | 78815207809147725df1e2737e9165ad0ffec393 /fs/nfs | |
parent | 37a8484aef09638b9eead7070cb0ee27adb74ceb (diff) | |
download | op-kernel-dev-d7e9825848cede4cf7589b63029b76428ae76958.zip op-kernel-dev-d7e9825848cede4cf7589b63029b76428ae76958.tar.gz |
NFS: Remove an extra if in _nfs4_recover_proc_open()
It's simpler just to return the status unconditionally
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/nfs4proc.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 3e892b0..031b867 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -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; } |