Skip to content

Commit 051a705

Browse files
Flavio Ceolinandrewboie
authored andcommitted
boards: galileo: Fix switch usage
According with MISRA-C every switch-clause must terminate with an unconditional break. MISRA-C rules 16.1 and 16.3 Signed-off-by: Flavio Ceolin <[email protected]>
1 parent b07fe48 commit 051a705

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

boards/x86/galileo/pinmux.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -567,6 +567,9 @@ int _galileo_pinmux_set_pin(struct device *port, u8_t pin, u32_t func)
567567
case NONE:
568568
/* no need to do anything */
569569
break;
570+
default:
571+
__ASSERT(false, "Invalid pinmux option");
572+
break;
570573
}
571574
}
572575

0 commit comments

Comments
 (0)