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
84}84}
85EXPORT_SYMBOL_GPL(timerqueue_del);85EXPORT_SYMBOL_GPL(timerqueue_del);
86 86
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 */
95struct timerqueue_node *timerqueue_getnext(struct timerqueue_head *head)
96{
97 return head->next;
98}
99EXPORT_SYMBOL_GPL(timerqueue_getnext);
100
101/**87/**
102 * timerqueue_iterate_next - Returns the timer after the provided timer88 * timerqueue_iterate_next - Returns the timer after the provided timer
103 *89 *