From 9a33f41180a119b80a6fdd1aafd341a1ee71b2c0 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 3 Mar 2017 15:09:44 -0600 Subject: [PATCH] Kinetis PINIRQ: Improper type for return value. --- arch/arm/src/kinetis/kinetis_pinirq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/src/kinetis/kinetis_pinirq.c b/arch/arm/src/kinetis/kinetis_pinirq.c index bf1b2af6ba..4d2c31ba7c 100644 --- a/arch/arm/src/kinetis/kinetis_pinirq.c +++ b/arch/arm/src/kinetis/kinetis_pinirq.c @@ -325,7 +325,7 @@ int kinetis_pinirqattach(uint32_t pinset, xcpt_t pinisr, void *arg) #endif default: leave_critical_section(flags); - return NULL; + return -EINVAL; } /* Get the old PIN ISR and set the new PIN ISR */