mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-06 16:40:47 +00:00
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:
parent
125b181674
commit
2d425b634f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue