mirror of https://gitee.com/openkylin/linux.git
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: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
8f68cd42d8
commit
4d4a76f330
|
@ -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++;
|
||||
}
|
||||
req->rq_bytes_sent = 0;
|
||||
req->rq_ntrans++;
|
||||
|
||||
return 1;
|
||||
|
||||
out_sleep:
|
||||
|
|
Loading…
Reference in New Issue