aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/hal_serial.c
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2018-02-10 11:25:29 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2018-02-10 11:25:29 +0000
commitff109ac9e64f0f107a21343cd82d603b04c35aaf (patch)
treee30c50c051bf1887c301cacdb9056af6c9bee966 /os/hal/src/hal_serial.c
parent87bae60d9dc02e8d415f490acf416e6207c86f4b (diff)
downloadChibiOS-ff109ac9e64f0f107a21343cd82d603b04c35aaf.tar.gz
ChibiOS-ff109ac9e64f0f107a21343cd82d603b04c35aaf.tar.bz2
ChibiOS-ff109ac9e64f0f107a21343cd82d603b04c35aaf.zip
MISRA-related changes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@11473 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src/hal_serial.c')
-rw-r--r--os/hal/src/hal_serial.c9
1 files changed, 6 insertions, 3 deletions
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;
}