Skip to content

Commit 7817a22

Browse files
committed
fix 'statement is unreachable' IAR warning
1 parent 0c227a0 commit 7817a22

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

targets/TARGET_Cypress/TARGET_PSOC6/cy_serial_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ void serial_format(serial_t *obj, int data_bits, SerialParity parity, int stop_b
125125
break;
126126
default:
127127
MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_DRIVER_SERIAL, MBED_ERROR_CODE_UNSUPPORTED), "Unsupported parity");
128-
return;
129128
}
130129
cyhal_uart_cfg_t cfg = {
131130
.data_bits = data_bits,

targets/TARGET_Cypress/TARGET_PSOC6/cy_spi_api.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ SPIName spi_get_peripheral_name(PinName mosi, PinName miso, PinName mclk)
4545
return (SPIName)CYHAL_SCB_BASE_ADDRESSES[map->inst->block_num];
4646
}
4747
MBED_ERROR(MBED_MAKE_ERROR(MBED_MODULE_DRIVER_SPI, MBED_ERROR_CODE_FAILED_OPERATION), "SPI not found");
48-
return (SPIName)0;
4948
}
5049

5150
static void cy_spi_irq_handler_internal(void *handler_arg, cyhal_spi_event_t event)

0 commit comments

Comments
 (0)