News for hackers. Stuff that matters.
Re:Linus Torvalds Answers Your Questions by fr0sty on Thursday October 11, 2012 @01:49PM (#4641885)
That traversal doesn't traverse. It just skip list to entry->next and would keep resetting.

You could do something like this instead:

  link = &((*link)->next);
Re:Linus Torvalds Answers Your Questions by nickkthequick on Thursday October 11, 2012 @02:17PM (#4642003)
Yes and then to set it would be

  *link = (*link)->next;