[U-Boot] [PATCH] AVR32: fix timer_init() function

Andreas Bießmann andreas.devel at googlemail.com
Tue Oct 4 15:39:18 CEST 2011


Dear Sven,

Am 04.10.2011 um 11:20 schrieb Sven Schnelle:

<snip>

> -	if (set_interrupt_handler(0, &timer_interrupt_handler, 3))
> -		return;
> +	if ((ret = set_interrupt_handler(0, &timer_interrupt_handler, 3)))
> +		return ret;
can you do it like this:

ret = set_interrupt_handler();
if (ret)
	return ret;


best regards

Andreas Bießmann


More information about the U-Boot mailing list