You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/05/05 17:56:43 UTC

[incubator-nuttx] 04/04: Fix nxstyle complaints from files changed by this PR

This is an automated email from the ASF dual-hosted git repository.

aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 5c7a0bd9f0090eafb83364c4ca2a964185f9f70a
Author: Gregory Nutt <gn...@nuttx.org>
AuthorDate: Tue May 5 10:10:52 2020 -0600

    Fix nxstyle complaints from files changed by this PR
---
 include/nuttx/tls.h         | 9 +++++----
 libs/libc/tls/tls_getelem.c | 8 ++++----
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/include/nuttx/tls.h b/include/nuttx/tls.h
index 7eb05ac..ba7a0c9 100644
--- a/include/nuttx/tls.h
+++ b/include/nuttx/tls.h
@@ -34,6 +34,7 @@
 /****************************************************************************
  * Pre-processor Definitions
  ****************************************************************************/
+
 /* Configuration ************************************************************/
 
 #ifdef CONFIG_TLS_ALIGNED
@@ -99,10 +100,10 @@ struct tls_info_s
  *   elem - Index of TLS element to return
  *
  * Returned Value:
- *   The value of TLS element associated with 'elem'. Errors are not reported.
- *   Aero is returned in the event of an error, but zero may also be valid
- *   value and returned when there is no error.  The only possible error would
- *   be if elemn < 0 or elem >=CONFIG_TLS_NELEM.
+ *   The value of TLS element associated with 'elem'. Errors are not
+ *   reported.  Zero is returned in the event of an error, but zero may also
+ *   be valid value and returned when there is no error.  The only possible
+ *   error would be if elem < 0 or elem >=CONFIG_TLS_NELEM.
  *
  ****************************************************************************/
 
diff --git a/libs/libc/tls/tls_getelem.c b/libs/libc/tls/tls_getelem.c
index 724d7fe..cfa7cd6 100644
--- a/libs/libc/tls/tls_getelem.c
+++ b/libs/libc/tls/tls_getelem.c
@@ -47,10 +47,10 @@
  *   elem - Index of TLS element to return
  *
  * Returned Value:
- *   The value of TLS element associated with 'elem'. Errors are not reported.
- *   Aero is returned in the event of an error, but zero may also be valid
- *   value and returned when there is no error.  The only possible error would
- *   be if elem >=CONFIG_TLS_NELEM.
+ *   The value of TLS element associated with 'elem'. Errors are not
+ *   reported.  Zero is returned in the event of an error, but zero may also
+ *   be valid value and returned when there is no error.  The only possible
+ *   error would be if elem < 0 or elem >=CONFIG_TLS_NELEM.
  *
  ****************************************************************************/