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

xprt: remove redundant null check

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

Signed-off-by: Jinqiu Yang<crindy646@gmail.com>
Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
parent 8f68cd42
...@@ -202,10 +202,9 @@ int xprt_reserve_xprt(struct rpc_task *task) ...@@ -202,10 +202,9 @@ int xprt_reserve_xprt(struct rpc_task *task)
goto out_sleep; goto out_sleep;
} }
xprt->snd_task = task; xprt->snd_task = task;
if (req) {
req->rq_bytes_sent = 0; req->rq_bytes_sent = 0;
req->rq_ntrans++; req->rq_ntrans++;
}
return 1; return 1;
out_sleep: out_sleep:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment