Skip to contentSkip to conversation

use list_for_each() in fs/autofs4/expire.c

PATCH New maximilian attems 1 participant 1 message Sep 10, 2003 Kernel automounter

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 use list_for_each() in fs/autofs4/expire.c

Use list_for_each() where applicable
From: Domen Puncer <[email protected]>
- for (list = ymf_devs.next; list != &ymf_devs; list = list->next) {
+ list_for_each(list, &ymf_devs) {
pure cosmetic change, defined as a preprocessor macro in:
include/linux/list.h

please apply
maks

fs/autofs4/expire.c +1 -3
@@ -169,9 +169,7 @@
 	timeout = sbi->exp_timeout;
 
 	spin_lock(&dcache_lock);
-	for(tmp = root->d_subdirs.next;
-	    tmp != &root->d_subdirs; 
-	    tmp = tmp->next) {
+	list_for_each(tmp, &root->d_subdirs) {
 		struct autofs_info *ino;
 		struct dentry *dentry = list_entry(tmp, struct dentry, d_child);
 

_______________________________________________
Kernel-janitors mailing list
[email protected]
http://lists.osdl.org/mailman/listinfo/kernel-janitors