Skip to content

Commit ba3c578

Browse files
j223yang@asset.uwaterloo.caTrond Myklebust
authored andcommitted
xprt: remove redundant check
remove redundant check. Signed-off-by: Jinqiu Yang <crindy646@gmail.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
1 parent a8de240 commit ba3c578

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/xprt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ int xprt_reserve_xprt(struct rpc_task *task)
212212
task->tk_pid, xprt);
213213
task->tk_timeout = 0;
214214
task->tk_status = -EAGAIN;
215-
if (req && req->rq_ntrans)
215+
if (req->rq_ntrans)
216216
rpc_sleep_on(&xprt->resend, task, NULL);
217217
else
218218
rpc_sleep_on(&xprt->sending, task, NULL);

0 commit comments

Comments
 (0)