From: Neil Horman Date: Thu, 23 Mar 2006 10:59:19 +0000 (-0800) Subject: [PATCH] proc: fix duplicate line in /proc/devices X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=5be0e9511990dc307670dc66a42073db96b20f26;p=openwrt%2Fstaging%2Fblogic.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)) { /*