3 Sep 2003 09:52
[Kernel-janitors] [PATCH] list_for_each fs/
maximilian attems <janitor <at> sternwelten.at>
2003-09-03 07:52:15 GMT
2003-09-03 07:52:15 GMT
again pure cosmetical change :)
- for (list = ymf_devs.next; list != &ymf_devs; list = list->next) {
+ list_for_each(list, &ymf_devs) {
tested, please apply
a++ maks
dquot.c | 2 +-
jffs/intrep.c | 4 ++--
namespace.c | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
--- linux-2.6.0-test4/fs/jffs/intrep.c Sat Aug 23 01:57:01 2003
+++ linux-2.6.0-maks4/fs/jffs/intrep.c Wed Sep 3 09:27:52 2003
<at> <at> -1624,7 +1624,7 <at> <at>
D3(printk("jffs_find_file(): ino: %u\n", ino));
- for (tmp = c->hash[i].next; tmp != &c->hash[i]; tmp = tmp->next) {
+ list_for_each(tmp, &c->hash[i]) {
f = list_entry(tmp, struct jffs_file, hash);
if (ino != f->ino)
continue;
<at> <at> -2022,7 +2022,7 <at> <at>
for (pos = 0; pos < c->hash_len; pos++) {
struct list_head *p, *next;
- for (p = c->hash[pos].next; p != &c->hash[pos]; p = next) {
+ list_for_each(p, &c->hash[pos]) {
(Continue reading)
RSS Feed