mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
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 <[email protected]> Reviewed-by: Chuck Lever <[email protected]> Signed-off-by: J. Bruce Fields <[email protected]>
This commit is contained in:
parent
8c14ff2aaf
commit
f10fef38d2
1 changed files with 0 additions and 2 deletions
|
|
@ -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 a new issue