From 5c7a0bd9f0090eafb83364c4ca2a964185f9f70a Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Tue, 5 May 2020 10:10:52 -0600 Subject: [PATCH] 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 7eb05acbb5..ba7a0c9e87 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 724d7fee35..cfa7cd62b4 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. * ****************************************************************************/