SUNRPC: Remove redundant calls to RPC_IS_QUEUED()
[linux-2.6-microblaze.git] / net / sunrpc / sched.c
index f215572..28956c7 100644 (file)
@@ -785,8 +785,7 @@ void rpc_exit(struct rpc_task *task, int status)
 {
        task->tk_status = status;
        task->tk_action = rpc_exit_task;
-       if (RPC_IS_QUEUED(task))
-               rpc_wake_up_queued_task(task->tk_waitqueue, task);
+       rpc_wake_up_queued_task(task->tk_waitqueue, task);
 }
 EXPORT_SYMBOL_GPL(rpc_exit);