From ec0212cc8a7d6ef6ffe0747cf4be1f4f05862f41 Mon Sep 17 00:00:00 2001 From: "Nakamura, Yuuichi" Date: Wed, 17 Jun 2020 15:43:34 +0900 Subject: [PATCH] drivers/syslog/note_driver.c: nxstyle fix --- drivers/syslog/note_driver.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/syslog/note_driver.c b/drivers/syslog/note_driver.c index ca312277d5..bade29ab76 100644 --- a/drivers/syslog/note_driver.c +++ b/drivers/syslog/note_driver.c @@ -97,26 +97,26 @@ static ssize_t note_read(FAR struct file *filep, FAR char *buffer, sched_lock(); 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); - if (notelen < 0) - { - /* We were unable to read the next note, probably because it will - * not fit into the user buffer. - */ + notelen = sched_note_get((FAR uint8_t *)buffer, buflen); + if (notelen < 0) + { + /* We were unable to read the next note, probably because it will + * not fit into the user buffer. + */ - if (retlen == 0) - { - /* If nothing was read then report the error. Otherwise, - * just silently drop the note. - */ + if (retlen == 0) + { + /* If nothing was read then report the error. Otherwise, + * just silently drop the note. + */ - retlen = notelen; - } + retlen = notelen; + } - break; - } + break; + } /* Update pointers from the note that was transferred */