# \[PATCH -next\] md: remove unneeded semicolon

- Subsystems: SOFTWARE RAID (Multiple Disks) SUPPORT, THE REST
- Maintainers: Song Liu, Yu Kuai, Linus Torvalds
- List: linux-raid
- 2 messages, 2 authors
- Page: https://ratatoskr.run/linux-raid/2022/07/1868821/t

## \[PATCH -next\] md: remove unneeded semicolon

- From: Yang Li \<hidden\>
- Date: 2022-07-22 00:28:14 
- Message: https://ratatoskr.run/linux-raid/2022/07/1868821.md

```text
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

```

## Re: \[PATCH -next\] md: remove unneeded semicolon

- From: Song Liu \<song@kernel.org\>
- Date: 2022-07-26 04:57:10 
- Message: https://ratatoskr.run/linux-raid/2022/07/1872215.md

```text
On Thu, Jul 21, 2022 at 5:28 PM Yang Li [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
> ---
>  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
>
```
