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

Commit 4d4a76f3 authored by j223yang@asset.uwaterloo.ca's avatar j223yang@asset.uwaterloo.ca Committed by Trond Myklebust
Browse files

xprt: remove redundant null check



'req' is dereferenced before checked for NULL.
The patch simply removes the check.

Signed-off-by: default avatarJinqiu <Yang&lt;crindy646@gmail.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 8f68cd42
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -202,10 +202,9 @@ int xprt_reserve_xprt(struct rpc_task *task)
		goto out_sleep;
	}
	xprt->snd_task = task;
	if (req) {
	req->rq_bytes_sent = 0;
	req->rq_ntrans++;
	}

	return 1;

out_sleep: