net/: The value ERROR should never be returned from internal OS functions. That is reserved for returning values to appliations with the errno value set. Within the OS, errors are returned with a negated errno value ALWAYS.

This commit is contained in:
Gregory Nutt
2019-02-14 15:38:36 -06:00
parent 359753adee
commit 69056d4053
5 changed files with 19 additions and 17 deletions
+2 -2
View File
@@ -51,8 +51,8 @@
#include <stdio.h>
#include <time.h>
#include <string.h>
#include <debug.h>
#include <errno.h>
#include <debug.h>
#include <arpa/inet.h>
#include <net/ethernet.h>
@@ -774,7 +774,7 @@ static int c5471_phyinit (void)
if (phyid != LU3X31_T64_PHYID)
{
nerr("ERROR: Unrecognized PHY ID: %08x\n", phyid);
return ERROR;
return -ENODEV;
}
/* Next, Set desired network rate, 10BaseT, 100BaseT, or auto. */