Selaa lähdekoodia

NFS: remove pointless if statement in nfs_direct_write_result

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>
Fred Isaman 15 vuotta sitten
vanhempi
commit
83762c56c1
1 muutettua tiedostoa jossa 1 lisäystä ja 2 poistoa
  1. 1 2
      fs/nfs/direct.c

+ 1 - 2
fs/nfs/direct.c

@@ -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);
 }
 
 /*