diff options
Diffstat (limited to 'os/hal/src')
-rw-r--r-- | os/hal/src/hal_buffers.c | 2 | ||||
-rw-r--r-- | os/hal/src/hal_serial_usb.c | 2 |
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();
}
|