From: Neil Horman Date: Thu, 23 Mar 2006 10:59:19 +0000 (-0800) Subject: [PATCH] proc: fix duplicate line in /proc/devices X-Git-Tag: v2.6.17-rc1~1115 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=5be0e9511990dc307670dc66a42073db96b20f26;p=karo-tx-linux.git [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: Neil Horman Cc: Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index 1d24fead51a6..826c131994c3 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c @@ -312,7 +312,7 @@ static void *devinfo_next(struct seq_file *f, void *v, loff_t *pos) case BLK_HDR: info->state = BLK_LIST; (*pos)++; - break; + /*fallthrough*/ case BLK_LIST: if (get_blkdev_info(info->blkdev,&idummy,&ndummy)) { /*