# Re: \[PATCH\] mtd: rawnand: mark expected switch fall-throughs

- From: Boris Brezillon \<bbrezillon@kernel.org\>
- Date: 2019-01-26 09:52:31 
- List: linux-arm-kernel
- Page: https://ratatoskr.run/linux-arm-kernel/2019/01/5494576
- Thread: https://ratatoskr.run/linux-arm-kernel/2019/01/5494343/t.md

```text
On Fri, 25 Jan 2019 15:09:50 -0600
"Gustavo A. R. Silva" [ref] wrote:

> diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand/raw/nandsim.c
> index 933d1a629c51..d33e15dc4cdc 100644
> --- a/drivers/mtd/nand/raw/nandsim.c
> +++ b/drivers/mtd/nand/raw/nandsim.c
> @@ -2251,9 +2251,10 @@ static int __init ns_init_module(void)
>  
>  	switch (bbt) {
>  	case 2:
> -		 chip->bbt_options |= NAND_BBT_NO_OOB;
> +		chip->bbt_options |= NAND_BBT_NO_OOB;
> +		/* fall through */
>  	case 1:
> -		 chip->bbt_options |= NAND_BBT_USE_FLASH;
> +		chip->bbt_options |= NAND_BBT_USE_FLASH;

You miss a '/* fall through */' here.

>  	case 0:
>  		break;
>  	default:

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
```
