From ff20d22f668bd712468220460cb549ddc0fca12d Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 3 Mar 2017 19:16:48 -0600 Subject: [PATCH] SAMv7 Ethernet: Fix a return value type. --- configs/samv71-xult/src/sam_ethernet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/samv71-xult/src/sam_ethernet.c b/configs/samv71-xult/src/sam_ethernet.c index c08097eaee..1278b4d6be 100644 --- a/configs/samv71-xult/src/sam_ethernet.c +++ b/configs/samv71-xult/src/sam_ethernet.c @@ -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