forked from Minki/linux
sunrpc: Remove useless if (task == NULL) from xprt_reserve_xprt
The task in question is dereferenced above (and is actually never NULL). Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Reviewed-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
This commit is contained in:
parent
8c14ff2aaf
commit
f10fef38d2
@ -199,8 +199,6 @@ int xprt_reserve_xprt(struct rpc_task *task)
|
||||
if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) {
|
||||
if (task == xprt->snd_task)
|
||||
return 1;
|
||||
if (task == NULL)
|
||||
return 0;
|
||||
goto out_sleep;
|
||||
}
|
||||
xprt->snd_task = task;
|
||||
|
Loading…
Reference in New Issue
Block a user