drivers/syslog/note_driver.c: nxstyle fix

This commit is contained in:
Nakamura, Yuuichi
2020-06-17 15:43:34 +09:00
committed by Xiang Xiao
parent 56fa98f3ea
commit ec0212cc8a
+16 -16
View File
@@ -97,26 +97,26 @@ static ssize_t note_read(FAR struct file *filep, FAR char *buffer,
sched_lock(); sched_lock();
do do
{ {
/* Get the next note (removing it from the buffer) */ /* Get the next note (removing it from the buffer) */
notelen = sched_note_get((FAR uint8_t *)buffer, buflen); notelen = sched_note_get((FAR uint8_t *)buffer, buflen);
if (notelen < 0) if (notelen < 0)
{ {
/* We were unable to read the next note, probably because it will /* We were unable to read the next note, probably because it will
* not fit into the user buffer. * not fit into the user buffer.
*/ */
if (retlen == 0) if (retlen == 0)
{ {
/* If nothing was read then report the error. Otherwise, /* If nothing was read then report the error. Otherwise,
* just silently drop the note. * just silently drop the note.
*/ */
retlen = notelen; retlen = notelen;
} }
break; break;
} }
/* Update pointers from the note that was transferred */ /* Update pointers from the note that was transferred */