diff mbox series

[v3] mtd: devices: Remove superfluous "break"

Message ID 20210514124451.20352-1-dingsenjie@163.com
State Accepted
Headers show
Series [v3] mtd: devices: Remove superfluous "break" | expand

Commit Message

dingsenjie@163.com May 14, 2021, 12:44 p.m. UTC
From: Ding Senjie <dingsenjie@yulong.com>

Remove superfluous "break", as there is a "return" before it.

Signed-off-by: Ding Senjie <dingsenjie@yulong.com>
---
 drivers/mtd/devices/ms02-nv.c | 1 -
 1 file changed, 1 deletion(-)

Comments

Miquel Raynal May 26, 2021, 9:02 a.m. UTC | #1
On Fri, 2021-05-14 at 12:44:51 UTC, dingsenjie@163.com wrote:
> From: Ding Senjie <dingsenjie@yulong.com>
> 
> Remove superfluous "break", as there is a "return" before it.
> 
> Signed-off-by: Ding Senjie <dingsenjie@yulong.com>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git mtd/next, thanks.

Miquel
diff mbox series

Patch

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++)