Commit 726efabd authored by Stephen Rothwell's avatar Stephen Rothwell Committed by Russell King

[PATCH] fs/locks.c use list_del_init

Trivial part of a patch by Matthew Wilcox
parent b7a813cf
...@@ -397,10 +397,8 @@ locks_same_owner(struct file_lock *fl1, struct file_lock *fl2) ...@@ -397,10 +397,8 @@ locks_same_owner(struct file_lock *fl1, struct file_lock *fl2)
*/ */
static void locks_delete_block(struct file_lock *waiter) static void locks_delete_block(struct file_lock *waiter)
{ {
list_del(&waiter->fl_block); list_del_init(&waiter->fl_block);
INIT_LIST_HEAD(&waiter->fl_block); list_del_init(&waiter->fl_link);
list_del(&waiter->fl_link);
INIT_LIST_HEAD(&waiter->fl_link);
waiter->fl_next = NULL; waiter->fl_next = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment