core: eliminate warning

This initialized has actually no relevance and is just needed to
suppress a compiler warning.
This commit is contained in:
Oleg Hahm 2014-10-30 12:07:55 +01:00
parent d7381cfd13
commit 9b1e180cd8

View File

@ -150,16 +150,12 @@ static int _hwtimer_set(unsigned long offset, void (*callback)(void*), void *ptr
unsigned state;
if (!inISR()) {
state = disableIRQ();
}
state = disableIRQ();
int n = lifo_get(lifo);
if (n == -1) {
if (!inISR()) {
restoreIRQ(state);
}
restoreIRQ(state);
puts("No hwtimer left.");
return -1;
@ -179,9 +175,7 @@ static int _hwtimer_set(unsigned long offset, void (*callback)(void*), void *ptr
lpm_prevent_sleep++;
if (!inISR()) {
restoreIRQ(state);
}
restoreIRQ(state);
return n;
}