binfmt/: Fix one more inappropriate access to the errno variable.
This commit is contained in:
parent
e93cb86903
commit
a096bc1266
|
@ -50,22 +50,6 @@
|
|||
|
||||
#ifndef CONFIG_BINFMT_DISABLE
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Function Prototypes
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* Public Functions
|
||||
****************************************************************************/
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -362,7 +362,7 @@ int elf_initialize(void)
|
|||
|
||||
void elf_uninitialize(void)
|
||||
{
|
||||
unregister_binfmt(&g_elfbinfmt);
|
||||
(void)unregister_binfmt(&g_elfbinfmt);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_ELF */
|
||||
|
|
|
@ -274,7 +274,7 @@ int nxflat_initialize(void)
|
|||
|
||||
void nxflat_uninitialize(void)
|
||||
{
|
||||
unregister_binfmt(&g_nxflatbinfmt);
|
||||
(void)unregister_binfmt(&g_nxflatbinfmt);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_NXFLAT */
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue