mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 05:55:46 +08:00
SAMv7 Ethernet: Fix a return value type.
This commit is contained in:
@@ -319,7 +319,7 @@ int arch_phy_irq(FAR const char *intf, xcpt_t handler, void *arg,
|
||||
else
|
||||
{
|
||||
nerr("ERROR: Unsupported interface: %s\n", intf);
|
||||
return NULL;
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* Disable interrupts until we are done. This guarantees that the
|
||||
|
||||
Reference in New Issue
Block a user