Removed useless global variable sys_call_code

- we have to same information in the message (m_ptr) where needed
This commit is contained in:
Tomas Hruby
2010-02-03 18:17:01 +00:00
parent 15b0595013
commit 8f82633fa2
3 changed files with 4 additions and 6 deletions

View File

@@ -91,8 +91,7 @@ PUBLIC void sys_task()
minix_panic("receive() failed", r);
}
sys_call_code = (unsigned) m.m_type;
call_nr = sys_call_code - KERNEL_CALL;
call_nr = m.m_type - KERNEL_CALL;
who_e = m.m_source;
okendpt(who_e, &who_p);
caller_ptr = proc_addr(who_p);