<p><b>@maribu</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/10717#discussion_r297604323">sys/evtimer/evtimer.c</a>:</p>
<pre style='color:#555'>>  {
     DEBUG("evtimer: new event offset %" PRIu32 " ms\n", event->offset);
-    /* we want list->next to point to the first list element. thus we take the
-     * *address* of evtimer->events, then cast it from (evtimer_event_t **) to
-     * (evtimer_event_t*). After that, list->next actually equals
-     * evtimer->events. */
-    evtimer_event_t *list = (evtimer_event_t *)&evtimer->events;
-
-    while (list->next) {
-        evtimer_event_t *list_entry = list->next;
+    evtimer_event_t **list = &evtimer->events;
</pre>
<p>Why not <code>evtimer_event_t *list = evtimer->events;</code> and replace <code>*list</code> by <code>list</code> in the following lines?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/10717?email_source=notifications&email_token=ABE7WYF2FW27R4IJE4YC4MLP4NDJVA5CNFSM4GOKOBP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4V6EMY#pullrequestreview-254534195">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYAWGP32EYA4IWZ6HCLP4NDJVANCNFSM4GOKOBPQ">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABE7WYDCYDA4O7A7NHYBJL3P4NDJVA5CNFSM4GOKOBP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4V6EMY.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/10717?email_source=notifications\u0026email_token=ABE7WYF2FW27R4IJE4YC4MLP4NDJVA5CNFSM4GOKOBP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4V6EMY#pullrequestreview-254534195",
"url": "https://github.com/RIOT-OS/RIOT/pull/10717?email_source=notifications\u0026email_token=ABE7WYF2FW27R4IJE4YC4MLP4NDJVA5CNFSM4GOKOBP2YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOB4V6EMY#pullrequestreview-254534195",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>