mtd: devices: Remove superfluous "break"
diff mbox series

Message ID 20210409030900.40296-1-dingsenjie@163.com
State New, archived
Headers show
Series
  • mtd: devices: Remove superfluous "break"
Related show

Commit Message

dingsenjie@163.com April 9, 2021, 3:09 a.m. UTC
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(-)

Comments

Miquel Raynal May 10, 2021, 10:22 a.m. UTC | #1
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

Patch
diff mbox series

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