guideline: Make explicit fallthrough cases
-Wimplicit-fallthrough=2 requires a fallthrough comment or a compiler to tells gcc that this happens intentionally. Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
parent
f0ec286759
commit
0aaae4a039
46 changed files with 105 additions and 101 deletions
|
@ -124,7 +124,8 @@ static int lpc11u6x_uart0_configure(struct device *dev,
|
|||
flags |= LPC11U6X_UART0_LCR_PARTIY_ENABLE |
|
||||
LPC11U6X_UART0_LCR_PARTIY_EVEN;
|
||||
break;
|
||||
case UART_CFG_PARITY_MARK: /* fallthrough */
|
||||
case UART_CFG_PARITY_MARK:
|
||||
__fallthrough;
|
||||
case UART_CFG_PARITY_SPACE:
|
||||
return -ENOTSUP;
|
||||
default:
|
||||
|
@ -539,7 +540,8 @@ static int lpc11u6x_uartx_configure(struct device *dev,
|
|||
case UART_CFG_PARITY_EVEN:
|
||||
flags |= LPC11U6X_UARTX_CFG_PARITY_EVEN;
|
||||
break;
|
||||
case UART_CFG_PARITY_MARK: /* fallthrough */
|
||||
case UART_CFG_PARITY_MARK:
|
||||
__fallthrough;
|
||||
case UART_CFG_PARITY_SPACE:
|
||||
return -ENOTSUP;
|
||||
default:
|
||||
|
@ -562,7 +564,8 @@ static int lpc11u6x_uartx_configure(struct device *dev,
|
|||
}
|
||||
|
||||
switch (cfg->data_bits) {
|
||||
case UART_CFG_DATA_BITS_5: /* fallthrough */
|
||||
case UART_CFG_DATA_BITS_5:
|
||||
__fallthrough;
|
||||
case UART_CFG_DATA_BITS_6:
|
||||
return -ENOTSUP;
|
||||
case UART_CFG_DATA_BITS_7:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue