Skip to content

Commit

Permalink
NFS: remove pointless if statement in nfs_direct_write_result
Browse files Browse the repository at this point in the history
The code was doing nothing more in either branch of the if.

Signed-off-by: Fred Isaman <iisaman@netapp.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
  • Loading branch information
Fred Isaman authored and Trond Myklebust committed Mar 11, 2011
1 parent eabf5ba commit 83762c5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fs/nfs/direct.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,7 @@ static void nfs_direct_write_result(struct rpc_task *task, void *calldata)
{
struct nfs_write_data *data = calldata;

if (nfs_writeback_done(task, data) != 0)
return;
nfs_writeback_done(task, data);
}

/*
Expand Down

0 comments on commit 83762c5

Please sign in to comment.