mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
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:
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user