From 2c8625ea7e370543c949f1f8b4a66f02c49f7617 Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Mon, 5 Oct 2020 13:47:39 -0700 Subject: [PATCH] xtensa: remove errno_var from strcut _thread_arch The errno_var copy in Xtensa's struct is not being used at all for errno (as there is already one in struct k_thread). So remove it. Signed-off-by: Daniel Leung --- include/arch/xtensa/thread.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/arch/xtensa/thread.h b/include/arch/xtensa/thread.h index cf4708ffc8d..5b85424f217 100644 --- a/include/arch/xtensa/thread.h +++ b/include/arch/xtensa/thread.h @@ -84,9 +84,7 @@ struct _thread_arch { * fixed offset to read the 'flags' field. */ uint32_t flags; -#ifdef CONFIG_ERRNO - int errno_var; -#endif + /* * The location of all floating point related structures/fields MUST be * located at the end of struct k_thread. This way only the threads