Skip to contentSkip to conversation

md: remove a superfluous semicolon

PATCH In review Christoph Hellwig 2 participants 2 messages Jul 23, 2022 – Jul 26, 2022 MD RAID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 md: remove a superfluous semicolon

No use for a semicolon at the end of a loop block.

---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c +1 -1
index 673a39042208c..2b2267be5c329 100644
@@ -8205,7 +8205,7 @@ static void *md_seq_next(struct seq_file *seq, void *v, loff_t *pos)
 			break;
 		mddev = next_mddev;
 		tmp = mddev->all_mddevs.next;
-	};
+	}
 	spin_unlock(&all_mddevs_lock);
 
 	if (to_put)
Signature · 1 line
2.30.2
maintainer
#1 lore raw
Quoted 5 lines · Christoph Hellwig

No use for a semicolon at the end of a loop block.

This is a duplicate of

https://lore.kernel.org/all/[email protected]/t/

Added Christoph's signed-off-by and the reported-by to that commit.

Thanks,
Song

Quoted 20 lines
---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c +1 -2
index 673a39042208c..2b2267be5c329 100644
@@ -8205,7 +8205,7 @@ static void *md_seq_next(struct seq_file *seq, void *v, loff_t *pos)
                        break;
                mddev = next_mddev;
                tmp = mddev->all_mddevs.next;
-       };
+       }
        spin_unlock(&all_mddevs_lock);
 
        if (to_put)
--

2.30.2