aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src/hal_serial_usb.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_usb.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_usb.c')
-rw-r--r--os/hal/src/hal_serial_usb.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/os/hal/src/hal_serial_usb.c b/os/hal/src/hal_serial_usb.c
index 0e63a386c..02a61d09b 100644
--- a/os/hal/src/hal_serial_usb.c
+++ b/os/hal/src/hal_serial_usb.c
@@ -135,6 +135,9 @@ 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(SDU_LLD_IMPLEMENTS_CTL)
/* The SDU driver does not have a LLD but the application can use this
@@ -143,10 +146,9 @@ static msg_t _ctl(void *ip, unsigned int operation, void *arg) {
unsigned int operation,
void *arg);
return sdu_lld_control(sdup, operation, arg);
-#endif
- case CHN_CTL_INVALID:
- osalDbgAssert(false, "invalid CTL operation");
+#else
break;
+#endif
}
return MSG_OK;
}