aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/src
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2017-02-05 15:08:12 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2017-02-05 15:08:12 +0000
commit5995950eb617d50beb043576eccf6f112bce188e (patch)
treed04e51caba669f3af46b84743d05882d42a77349 /os/hal/src
parent1474f60da3ac5bf5bc04eddfea7e3d41b1932658 (diff)
downloadChibiOS-5995950eb617d50beb043576eccf6f112bce188e.tar.gz
ChibiOS-5995950eb617d50beb043576eccf6f112bce188e.tar.bz2
ChibiOS-5995950eb617d50beb043576eccf6f112bce188e.zip
MISRA-related fixes.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10085 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/src')
-rw-r--r--os/hal/src/hal_buffers.c2
-rw-r--r--os/hal/src/hal_serial_usb.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/os/hal/src/hal_buffers.c b/os/hal/src/hal_buffers.c
index b56f79b60..871fd0a42 100644
--- a/os/hal/src/hal_buffers.c
+++ b/os/hal/src/hal_buffers.c
@@ -873,7 +873,7 @@ void obqFlush(output_buffers_queue_t *obqp) {
/* If there is a buffer partially filled and not being written.*/
if (obqp->ptr != NULL) {
- size_t size = (size_t)obqp->ptr - (size_t)obqp->bwrptr - sizeof (size_t);
+ size_t size = ((size_t)obqp->ptr - (size_t)obqp->bwrptr) - sizeof (size_t);
if (size > 0U) {
obqPostFullBufferS(obqp, size);
diff --git a/os/hal/src/hal_serial_usb.c b/os/hal/src/hal_serial_usb.c
index 4936a92ae..f3c606942 100644
--- a/os/hal/src/hal_serial_usb.c
+++ b/os/hal/src/hal_serial_usb.c
@@ -471,7 +471,7 @@ void sduDataReceived(USBDriver *usbp, usbep_t ep) {
/* The endpoint cannot be busy, we are in the context of the callback,
so a packet is in the buffer for sure. Trying to get a free buffer
for the next transaction.*/
- sdu_start_receive(sdup);
+ (void) sdu_start_receive(sdup);
osalSysUnlockFromISR();
}