Skip to content

Commit 8b87511

Browse files
committed
Remove statement is unreachable warning in MbedCRC.h
The code removed appears unnecessary given that the switch case below also handles the case where the polynomial is `POLY_32BIT_REV_ANSI`
1 parent 01bb1b9 commit 8b87511

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/MbedCRC.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -514,11 +514,6 @@ class MbedCRC {
514514
MBED_STATIC_ASSERT(width <= 32, "Max 32-bit CRC supported");
515515

516516
#if DEVICE_CRC
517-
if (POLY_32BIT_REV_ANSI == polynomial) {
518-
_crc_table = (uint32_t *)Table_CRC_32bit_Rev_ANSI;
519-
_mode = TABLE;
520-
return;
521-
}
522517
crc_mbed_config_t config;
523518
config.polynomial = polynomial;
524519
config.width = width;

0 commit comments

Comments
 (0)