diff options
| author | Dave Jones <davej@suse.de> | 2002-04-03 22:23:13 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-04-03 22:23:13 -0800 |
| commit | 3cbdf133626a920f80db1e57552d39b43da48ddd (patch) | |
| tree | 17352a4c00e344abd00d026561dfd2abb3930bd0 /fs/block_dev.c | |
| parent | 6037891cece4d83345beecd9caceaa5f9b3ade72 (diff) | |
[PATCH] list_for_each is fs/
From the kernel janitor folks
Diffstat (limited to 'fs/block_dev.c')
| -rw-r--r-- | fs/block_dev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/block_dev.c b/fs/block_dev.c index 30ec91b830d4..af9264109098 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c @@ -337,7 +337,7 @@ static struct block_device *bdfind(dev_t dev, struct list_head *head) { struct list_head *p; struct block_device *bdev; - for (p=head->next; p!=head; p=p->next) { + list_for_each(p, head) { bdev = list_entry(p, struct block_device, bd_hash); if (bdev->bd_dev != dev) continue; |
