SUNRPC: Remove the unused helpers task_for_each() and task_for_first()
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 21 May 2013 16:58:57 +0000 (12:58 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 6 Jun 2013 20:24:39 +0000 (16:24 -0400)
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
include/linux/sunrpc/sched.h

index 5e255ab893da9e1848e4b68a004e969193a31da7..7ec7e6e7e42c0847eccb91cec5f0bcb22cb414fc 100644 (file)
@@ -88,15 +88,6 @@ struct rpc_task {
                                tk_rebind_retry : 2;
 };
 
-/* support walking a list of tasks on a wait queue */
-#define        task_for_each(task, pos, head) \
-       list_for_each(pos, head) \
-               if ((task=list_entry(pos, struct rpc_task, u.tk_wait.list)),1)
-
-#define        task_for_first(task, head) \
-       if (!list_empty(head) &&  \
-           ((task=list_entry((head)->next, struct rpc_task, u.tk_wait.list)),1))
-
 typedef void                   (*rpc_action)(struct rpc_task *);
 
 struct rpc_call_ops {