md: remove unneeded semicolon

Started by Yang Li on Jul 22, 2022 · 2 messages from 2 authors · Last reply Jul 26, 2022

Subsystems (2)

Maintainers (3)

STALE1592d

open the first message on its own page

Message details and related content
Eliminate the following coccicheck warning:
./drivers/md/md.c:8208:2-3: Unneeded semicolon

Reported-by: Abaci Robot <redacted>
Signed-off-by: Yang Li <redacted>
---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 673a39042208..2b2267be5c32 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -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
Message details and related content
On Thu, Jul 21, 2022 at 5:28 PM Yang Li [off-list ref] wrote:
Eliminate the following coccicheck warning:
./drivers/md/md.c:8208:2-3: Unneeded semicolon

Reported-by: Abaci Robot <redacted>
Signed-off-by: Yang Li <redacted>
Applied to md-next.

Thanks,
Song
quoted hunk
---
 drivers/md/md.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/md/md.c b/drivers/md/md.c
index 673a39042208..2b2267be5c32 100644
--- a/drivers/md/md.c
+++ b/drivers/md/md.c
@@ -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
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help