dfu: Remove unused variable, mark method as not retuning

This commit is contained in:
Holger Hans Peter Freyther 2011-11-09 23:24:16 +01:00 committed by Harald Welte
parent 7db9f66c8b
commit ebc2088382
2 changed files with 2 additions and 3 deletions

View File

@ -5,5 +5,6 @@
#define unlikely(x) __builtin_expect(!!(x), 0)
#define __unused __attribute__((unused))
#define __noreturn __attribute__((noreturn))
#endif

View File

@ -993,10 +993,8 @@ static __dfufunc void dfu_udp_irq(void)
}
/* this is only called once before DFU mode, no __dfufunc required */
static void dfu_switch(void)
static __noreturn void dfu_switch(void)
{
AT91PS_AIC pAic = AT91C_BASE_AIC;
DEBUGE("\r\nsam7dfu: switching to DFU mode\r\n");
dfu_state = DFU_STATE_appDETACH;