Skip to contentSkip to conversation

md: remove unneeded semicolon

PATCH Applied Yang Li 2 participants 2 messages Jul 22, 2022 – Jul 26, 2022 MD RAID

lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 md: remove unneeded semicolon

Eliminate the following coccicheck warning:
./drivers/md/md.c:8208:2-3: Unneeded semicolon

---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c +1 -1
index 673a39042208..2b2267be5c32 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.20.1.7.g153144c
maintainer Applied
#1 lore raw
Quoted 6 lines · Yang Li

Eliminate the following coccicheck warning:
./drivers/md/md.c:8208:2-3: Unneeded semicolon

Applied to md-next.

Thanks,
Song

Quoted 20 lines
---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/md.c +1 -2
index 673a39042208..2b2267be5c32 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.20.1.7.g153144c