[PATCH] fs/locks.c use list_del_init

Stephen Rothwell (sfr@canb.auug.org.au)
Wed, 5 Jun 2002 14:27:21 +1000


Hi Linus,

Trivial part of a patch by Matthew Wilcox. Please apply.

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff -ruN 2.5.20/fs/locks.c 2.5.20-sfr.1/fs/locks.c --- 2.5.20/fs/locks.c Fri Mar 8 14:37:19 2002 +++ 2.5.20-sfr.1/fs/locks.c Wed Jun 5 14:23:33 2002 @@ -397,10 +397,8 @@ */ static void locks_delete_block(struct file_lock *waiter) { - list_del(&waiter->fl_block); - INIT_LIST_HEAD(&waiter->fl_block); - list_del(&waiter->fl_link); - INIT_LIST_HEAD(&waiter->fl_link); + list_del_init(&waiter->fl_block); + list_del_init(&waiter->fl_link); waiter->fl_next = NULL; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/