Skip to content

Commit c0d0e96

Browse files
Trond MyklebustTrond Myklebust
authored andcommitted
NFS: Get rid of pointless test in nfs_commit_done
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent 561f0b0 commit c0d0e96

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎fs/nfs/write.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,8 +1417,7 @@ static void nfs_commit_done(struct rpc_task *task, void *calldata)
14171417
task->tk_pid, task->tk_status);
14181418

14191419
/* Call the NFS version-specific code */
1420-
if (NFS_PROTO(data->inode)->commit_done(task, data) != 0)
1421-
return;
1420+
NFS_PROTO(data->inode)->commit_done(task, data);
14221421
}
14231422

14241423
void nfs_commit_release_pages(struct nfs_write_data *data)

0 commit comments

Comments
 (0)