Fix indentation and code style
Some old files under os/sys use tabs instead of spaces here and there. This commit fixes indentation and opportunistically applies some other code style improvements
@@ -100,10 +100,11 @@ PROCESS_THREAD(etimer_process, ev, data)
while(t->next != NULL) {
if(t->next->p == p) {
t->next = t->next->next;
- } else
+ } else {
t = t->next;
}
}
+ }
continue;
} else if(ev != PROCESS_EVENT_POLL) {
continue;
@@ -135,7 +136,6 @@ PROCESS_THREAD(etimer_process, ev, data)
}
u = t;
}
-
}
PROCESS_END();
@@ -251,7 +251,8 @@ etimer_stop(struct etimer *et)
} else {
/* Else walk through the list and try to find the item before the
et timer. */
- for(t = timerlist; t != NULL && t->next != et; t = t->next);
+ for(t = timerlist; t != NULL && t->next != et; t = t->next) {
+ }
if(t != NULL) {
/* We've found the item before the event timer that we are about
