From: Vojtech P. <vo...@su...> - 2001-06-22 12:23:39
|
On Tue, Jun 19, 2001 at 10:33:17AM -0700, James Simmons wrote: > > > This brings up a few other potential issues in various other portions of > > the code. This current approach is far too ugly, there are all sorts of > > opportunities where it could be dereferencing NULL, etc. > > > > A more general solution for this kind of finding/removal of nodes from > > the linked list would likely be a better solution. > > > > What does everyone think about something like the attached patch as a > > more unified solution? > > Their is linux/include/linux/list.h which is a generic interface for > double link list. From what I see their is no single link list > implementation. I'd agree with rewriting the input stuff to use doubly linked lists where applicable. The removing stuff in the signle linked ones used there is rather ugly. -- Vojtech Pavlik SuSE Labs |