From c368c67090f4f560e3cf96b3db52771091e7b4ae Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sun, 5 Mar 2017 14:20:11 -0600 Subject: [PATCH] SAMA5D4-EK: Eliminate warning. Correct type of return value. --- configs/sama5d4-ek/src/sam_ethernet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configs/sama5d4-ek/src/sam_ethernet.c b/configs/sama5d4-ek/src/sam_ethernet.c index 15cce4d2e1..c491ec9dd1 100644 --- a/configs/sama5d4-ek/src/sam_ethernet.c +++ b/configs/sama5d4-ek/src/sam_ethernet.c @@ -50,6 +50,7 @@ #include #include +#include #include #include @@ -262,7 +263,7 @@ int arch_phy_irq(FAR const char *intf, xcpt_t handler, void *arg, #endif { nerr("ERROR: Unsupported interface: %s\n", intf); - return NULL; + return -EINVAL; } /* Disable interrupts until we are done. This guarantees that the