eclair: fix compiler warnings

This commit is contained in:
Balazs Gerofi
2016-12-23 09:57:50 +09:00
parent 4667136a4c
commit 3565959af7

View File

@ -289,12 +289,9 @@ static int setup_threads(void) {
uintptr_t v;
uintptr_t head;
uintptr_t entry;
uintptr_t idle;
v = clv + (cpu * K(CPU_LOCAL_VAR_SIZE));
idle = v+K(IDLE_THREAD_OFFSET);
error = read_64(v+K(CURRENT_OFFSET), &current);
if (error) {
perror("current");
@ -364,7 +361,7 @@ static int setup_threads(void) {
if (!curr_thread)
curr_thread = ti;
next_thread:
error = read_64(entry, &entry);
if (error) {
perror("process2");