From: Pavel Emelyanov Date: Tue, 5 Oct 2010 16:47:16 +0000 (+0400) Subject: sunrpc: Remove useless if (task == NULL) from xprt_reserve_xprt X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=f10fef38d2d1605c977346457d0adb0919d0bbe7;p=openwrt%2Fstaging%2Fblogic.git 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 Reviewed-by: Chuck Lever Signed-off-by: J. Bruce Fields --- diff --git a/net/sunrpc/xprt.c b/net/sunrpc/xprt.c index 953206d8c6c2..64a4a94fd6dd 100644 --- a/net/sunrpc/xprt.c +++ b/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 (task == xprt->snd_task) return 1; - if (task == NULL) - return 0; goto out_sleep; } xprt->snd_task = task;