You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2022/12/15 17:27:24 UTC
[GitHub] [nuttx] anchao commented on a diff in pull request #7892: mm/iob: iob members are initialized after allocate
anchao commented on code in PR #7892:
URL: https://github.com/apache/nuttx/pull/7892#discussion_r1049948287
##########
libs/libc/stream/lib_syslogstream.c:
##########
@@ -198,17 +194,7 @@ void lib_syslogstream_open(FAR struct lib_syslogstream_s *stream)
#ifdef CONFIG_SYSLOG_BUFFER
/* Allocate an IOB */
- iob = iob_tryalloc(true);
- stream->iob = iob;
-
- if (iob != NULL)
- {
- /* Initialize the IOB */
-
- iob->io_len = 0;
- iob->io_offset = 0;
- iob->io_pktlen = 0;
- }
+ stream->iob = iob_tryalloc(true);
Review Comment:
Done
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org