Commit 5be0e951 authored by Neil Horman's avatar Neil Horman Committed by Linus Torvalds

[PATCH] proc: fix duplicate line in /proc/devices

Fix a duplicate block device line printed after the "Block device" header
in /proc/devices.
Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fcab1e51
...@@ -312,7 +312,7 @@ static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos) ...@@ -312,7 +312,7 @@ static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos)
case BLK_HDR: case BLK_HDR:
info->state = BLK_LIST; info->state = BLK_LIST;
(*pos)++; (*pos)++;
break; /*fallthrough*/
case BLK_LIST: case BLK_LIST:
if (get_blkdev_info(info->blkdev,&idummy,&ndummy)) { if (get_blkdev_info(info->blkdev,&idummy,&ndummy)) {
/* /*
......
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