Skip to content

Commit 23892b0

Browse files
Thinh Le Conghenrikbrixandersen
authored andcommitted
drivers: serial: fix IAR warning Pe1072 about declaration after a label
Fix Pe1072 warning (declaration after case label) by wrapping with braces Signed-off-by: Thinh Le Cong <thinh.le.xr@bp.renesas.com>
1 parent 9d9529f commit 23892b0

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/serial/uart_renesas_ra8_sci_b.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -963,6 +963,7 @@ static int uart_ra_sci_b_pm_action(const struct device *dev, enum pm_device_acti
963963
break;
964964

965965
case PM_DEVICE_ACTION_RESUME:
966+
{
966967
/* Reinitialize the device */
967968
int ret = uart_ra_sci_b_apply_config(&data->uart_config, &data->fsp_config,
968969
&data->fsp_config_extend,
@@ -974,6 +975,7 @@ static int uart_ra_sci_b_pm_action(const struct device *dev, enum pm_device_acti
974975
fsp_err = R_SCI_B_UART_Open(&data->sci, &data->fsp_config);
975976
__ASSERT(fsp_err == 0, "sci_uart: initialization: open failed");
976977
break;
978+
}
977979

978980
default:
979981
return -ENOTSUP;

0 commit comments

Comments
 (0)