Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 905e7daf authored by Trond Myklebust's avatar Trond Myklebust
Browse files

NFSv4.1: Cleanup



It is now completely safe to call nfs41_sequence_free_slot with a NULL
slot.

Signed-off-by: default avatarTrond Myklebust <trond.myklebust@primarydata.com>
parent a13ce7c6
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -336,7 +336,6 @@ static void filelayout_read_call_done(struct rpc_task *task, void *data)

	if (test_bit(NFS_IOHDR_REDO, &rdata->header->flags) &&
	    task->tk_status == 0) {
		if (rdata->res.seq_res.sr_slot != NULL)
		nfs41_sequence_done(task, &rdata->res.seq_res);
		return;
	}
@@ -446,7 +445,6 @@ static void filelayout_write_call_done(struct rpc_task *task, void *data)

	if (test_bit(NFS_IOHDR_REDO, &wdata->header->flags) &&
	    task->tk_status == 0) {
		if (wdata->res.seq_res.sr_slot != NULL)
		nfs41_sequence_done(task, &wdata->res.seq_res);
		return;
	}