Skip to content

Commit

Permalink
squash gnrc_netif null pointer check in event loop
Browse files Browse the repository at this point in the history
  • Loading branch information
Joakim Nohlgård committed Jun 30, 2018
1 parent c58b369 commit d5f76b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/net/gnrc/netif/gnrc_netif.c
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,9 @@ static void *_gnrc_netif_thread(void *args)
event_t *evp;
while ((evp = event_get(&netif->evq))) {
DEBUG("gnrc_netif: event %p\n", (void *)evp);
evp->handler(evp);
if (evp->handler) {
evp->handler(evp);
}
}
}
if (flags & THREAD_FLAG_MSG_WAITING) {
Expand Down

0 comments on commit d5f76b3

Please sign in to comment.