core: eliminate warning
This initialized has actually no relevance and is just needed to suppress a compiler warning.
This commit is contained in:
parent
d7381cfd13
commit
9b1e180cd8
@ -150,16 +150,12 @@ static int _hwtimer_set(unsigned long offset, void (*callback)(void*), void *ptr
|
||||
|
||||
unsigned state;
|
||||
|
||||
if (!inISR()) {
|
||||
state = disableIRQ();
|
||||
}
|
||||
|
||||
int n = lifo_get(lifo);
|
||||
|
||||
if (n == -1) {
|
||||
if (!inISR()) {
|
||||
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);
|
||||
}
|
||||
|
||||
return n;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user