loader: c_init returns 0 or 1

c_init returns 0 (success) or 1 (failure). Don't return other values.

Sponsored by:		Netflix
This commit is contained in:
Warner Losh 2024-05-19 15:08:40 -06:00
parent 125b181674
commit 2d425b634f
2 changed files with 4 additions and 4 deletions

View File

@ -390,10 +390,10 @@ static int
comc_init(int arg __unused)
{
if (comc_setup())
return (CMD_OK);
return (0);
eficom.c_flags &= ~(C_ACTIVEIN | C_ACTIVEOUT);
return (CMD_ERROR);
return (1);
}
static void

View File

@ -140,8 +140,8 @@ comc_init(int arg)
if ((comconsole.c_flags & (C_PRESENTIN | C_PRESENTOUT)) ==
(C_PRESENTIN | C_PRESENTOUT))
return (CMD_OK);
return (CMD_ERROR);
return (0);
return (1);
}
static void