提交 4d4a76f3 编写于 作者: J j223yang@asset.uwaterloo.ca 提交者: 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: NTrond Myklebust <Trond.Myklebust@netapp.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册