binfmt/: Fix one more inappropriate access to the errno variable.

This commit is contained in:
Gregory Nutt 2018-02-01 08:33:04 -06:00
parent e93cb86903
commit a096bc1266
5 changed files with 4 additions and 24 deletions

View File

@ -50,22 +50,6 @@
#ifndef CONFIG_BINFMT_DISABLE
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/****************************************************************************
* Private Function Prototypes
****************************************************************************/
/****************************************************************************
* Private Data
****************************************************************************/
/****************************************************************************
* Private Functions
****************************************************************************/
/****************************************************************************
* Public Functions
****************************************************************************/

View File

@ -195,7 +195,7 @@ int builtin_initialize(void)
void builtin_uninitialize(void)
{
unregister_binfmt(&g_builtin_binfmt);
(void)unregister_binfmt(&g_builtin_binfmt);
}
#endif /* CONFIG_BUILTIN */

View File

@ -362,7 +362,7 @@ int elf_initialize(void)
void elf_uninitialize(void)
{
unregister_binfmt(&g_elfbinfmt);
(void)unregister_binfmt(&g_elfbinfmt);
}
#endif /* CONFIG_ELF */

View File

@ -274,7 +274,7 @@ int nxflat_initialize(void)
void nxflat_uninitialize(void)
{
unregister_binfmt(&g_nxflatbinfmt);
(void)unregister_binfmt(&g_nxflatbinfmt);
}
#endif /* CONFIG_NXFLAT */

View File

@ -583,11 +583,7 @@ void pcode_uninitialize(void)
ret = unregister_binfmt(&g_pcode_binfmt);
if (ret < 0)
{
int errval = get_errno();
DEBUGASSERT(errval > 0);
berr("ERROR: unregister_binfmt() failed: %d\n", errval);
UNUSED(errval);
berr("ERROR: unregister_binfmt() failed: %d\n", ret);
}
#ifdef CONFIG_BINFMT_PCODE_TEST_FS