History

timerqueue: Make timerqueue_getnext() static inline

No point in calling a function just to dereference a pointer.

Thomas Gleixner committed 15 years ago

Commit 45f74261 parent b007c382 files · +14 −15Browse files

Showing the changes to lib/timerqueue.c (1 of 2 files). Show all

Unified · Split

lib/timerqueue.c+0−14
@@ -84,20 +84,6 @@ void timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node) · 83 unmodified lines
8484 }
8585 EXPORT_SYMBOL_GPL(timerqueue_del);
8686
87−/**
88− * timerqueue_getnext - Returns the timer with the earlies expiration time
89− *
90− * @head: head of timerqueue
91− *
92− * Returns a pointer to the timer node that has the
93− * earliest expiration time.
94− */
95−struct timerqueue_node *timerqueue_getnext(struct timerqueue_head *head)
96−{
97− return head->next;
98−}
99−EXPORT_SYMBOL_GPL(timerqueue_getnext);
100−
10187 /**
10288 * timerqueue_iterate_next - Returns the timer after the provided timer
10389 *