K66 Buttons: Missing definition of 'ret'

This commit is contained in:
Gregory Nutt 2017-03-03 15:07:38 -06:00
parent 06ce1a2291
commit f8ef544c34

View File

@ -140,6 +140,7 @@ uint8_t board_buttons(void)
int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg)
{
uint32_t pinset;
int ret;
/* Map the button id to the GPIO bit set. */
@ -170,7 +171,7 @@ int board_button_irq(int id, xcpt_t irqhandler, FAR void *arg)
kinetis_pinirqenable(pinset);
}
return NULL;
return ret;
}
#endif
#endif /* CONFIG_ARCH_BUTTONS */