* [PATCH] mtd: devices: Remove superfluous "break"
@ 2021-04-09 3:09 dingsenjie
2021-05-10 10:22 ` Miquel Raynal
0 siblings, 1 reply; 2+ messages in thread
From: dingsenjie @ 2021-04-09 3:09 UTC (permalink / raw)
To: miquel.raynal, richard, vigneshr; +Cc: linux-mtd, linux-kernel, dingsenjie
From: dingsenjie <dingsenjie@yulong.com>
Remove superfluous "break", as there is a "return" before them.
Signed-off-by: dingsenjie <dingsenjie@yulong.com>
---
drivers/mtd/devices/ms02-nv.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/devices/ms02-nv.c b/drivers/mtd/devices/ms02-nv.c
index fb4a6aa..08f76ff 100644
--- a/drivers/mtd/devices/ms02-nv.c
+++ b/drivers/mtd/devices/ms02-nv.c
@@ -286,7 +286,6 @@ static int __init ms02nv_init(void)
break;
default:
return -ENODEV;
- break;
}
for (i = 0; i < ARRAY_SIZE(ms02nv_addrs); i++)
--
1.9.1
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mtd: devices: Remove superfluous "break"
2021-04-09 3:09 [PATCH] mtd: devices: Remove superfluous "break" dingsenjie
@ 2021-05-10 10:22 ` Miquel Raynal
0 siblings, 0 replies; 2+ messages in thread
From: Miquel Raynal @ 2021-05-10 10:22 UTC (permalink / raw)
To: dingsenjie; +Cc: richard, vigneshr, linux-mtd, linux-kernel, dingsenjie
Hi dingsenjie@163.com,
dingsenjie@163.com wrote on Fri, 9 Apr 2021 11:09:00 +0800:
> From: dingsenjie <dingsenjie@yulong.com>
>
> Remove superfluous "break", as there is a "return" before them.
^
it
>
> Signed-off-by: dingsenjie <dingsenjie@yulong.com>
^
Please use your real name here.
> ---
> drivers/mtd/devices/ms02-nv.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/mtd/devices/ms02-nv.c b/drivers/mtd/devices/ms02-nv.c
> index fb4a6aa..08f76ff 100644
> --- a/drivers/mtd/devices/ms02-nv.c
> +++ b/drivers/mtd/devices/ms02-nv.c
> @@ -286,7 +286,6 @@ static int __init ms02nv_init(void)
> break;
> default:
> return -ENODEV;
> - break;
> }
>
> for (i = 0; i < ARRAY_SIZE(ms02nv_addrs); i++)
Thanks,
Miquèl
______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-10 10:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-09 3:09 [PATCH] mtd: devices: Remove superfluous "break" dingsenjie
2021-05-10 10:22 ` Miquel Raynal
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).