[PATCH] fs/locks.c use list_del_init

From: Stephen Rothwell (sfr@canb.auug.org.au)
Date: Tue Jun 04 2002 - 23:27:21 EST


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/



This archive was generated by hypermail 2b29 : Fri Jun 07 2002 - 22:00:23 EST