fix a warning

| mckernel/kernel/syscall.c: In function 'do_syscall':
| mckernel/kernel/syscall.c:187:
|     warning: 'irqstate' may be used uninitialized in this function
This commit is contained in:
NAKAMURA Gou
2014-12-22 15:34:01 +09:00
parent c810afe224
commit 391886a6f1

View File

@ -194,6 +194,7 @@ long do_syscall(struct syscall_request *req, ihk_mc_user_context_t *ctx,
if(proc->nohost) // host is down
return -EPIPE;
irqstate = 0; /* for avoidance of warning */
if(req->number == __NR_exit_group ||
req->number == __NR_gettid ||
req->number == __NR_kill){ // interrupt syscall