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
+1 -5
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