No point in calling a function just to dereference a pointer.
Showing the changes to lib/timerqueue.c (1 of 2 files). Show all
Unified · Split
| @@ -84,20 +84,6 @@ void timerqueue_del(struct timerqueue_head *head, struct timerqueue_node *node) · 83 unmodified lines | |||
| 84 | } | 84 | } |
| 85 | EXPORT_SYMBOL_GPL(timerqueue_del); | 85 | EXPORT_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 | */ | ||
| 95 | struct timerqueue_node *timerqueue_getnext(struct timerqueue_head *head) | ||
| 96 | { | ||
| 97 | return head->next; | ||
| 98 | } | ||
| 99 | EXPORT_SYMBOL_GPL(timerqueue_getnext); | ||
| 100 | |||
| 101 | /** | 87 | /** |
| 102 | * timerqueue_iterate_next - Returns the timer after the provided timer | 88 | * timerqueue_iterate_next - Returns the timer after the provided timer |
| 103 | * | 89 | * |