Browse Source

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>
Pavel Emelyanov 14 years ago
parent
commit
f10fef38d2
1 changed files with 0 additions and 2 deletions
  1. 0 2
      net/sunrpc/xprt.c

+ 0 - 2
net/sunrpc/xprt.c

@@ -199,8 +199,6 @@ int xprt_reserve_xprt(struct rpc_task *task)
 	if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) {
 	if (test_and_set_bit(XPRT_LOCKED, &xprt->state)) {
 		if (task == xprt->snd_task)
 		if (task == xprt->snd_task)
 			return 1;
 			return 1;
-		if (task == NULL)
-			return 0;
 		goto out_sleep;
 		goto out_sleep;
 	}
 	}
 	xprt->snd_task = task;
 	xprt->snd_task = task;