From ff109ac9e64f0f107a21343cd82d603b04c35aaf Mon Sep 17 00:00:00 2001 From: Giovanni Di Sirio Date: Sat, 10 Feb 2018 11:25:29 +0000 Subject: MISRA-related changes. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11473 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/hal/src/hal_serial.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'os/hal/src/hal_serial.c') diff --git a/os/hal/src/hal_serial.c b/os/hal/src/hal_serial.c index ee2b9ad55..734316877 100644 --- a/os/hal/src/hal_serial.c +++ b/os/hal/src/hal_serial.c @@ -100,13 +100,16 @@ static msg_t _ctl(void *ip, unsigned int operation, void *arg) { case CHN_CTL_NOP: osalDbgCheck(arg == NULL); break; + case CHN_CTL_INVALID: + osalDbgAssert(false, "invalid CTL operation"); + break; default: #if defined(SD_LLD_IMPLEMENTS_CTL) + /* Delegating to the LLD if supported.*/ return sd_lld_control(sdp, operation, arg); -#endif - case CHN_CTL_INVALID: - osalDbgAssert(false, "invalid CTL operation"); +#else break; +#endif } return MSG_OK; } -- cgit v1.2.3