mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
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
Block a user