Return RVAL_STR unconditionally
There is no reason to check for auxstr being non-NULL because syscall_exiting_trace already does the check. * sched.c (SYS_FUNC(sched_getscheduler)): Do not check tcp->auxstr, return RVAL_STR unconditionally. * time.c (do_adjtimex): Likewise.
This commit is contained in:
parent
0f368cd8cb
commit
b7154bf146
3
sched.c
3
sched.c
@ -42,8 +42,7 @@ SYS_FUNC(sched_getscheduler)
|
||||
tprintf("%d", (int) tcp->u_arg[0]);
|
||||
} else if (!syserror(tcp)) {
|
||||
tcp->auxstr = xlookup(schedulers, (kernel_ulong_t) tcp->u_rval);
|
||||
if (tcp->auxstr != NULL)
|
||||
return RVAL_STR;
|
||||
return RVAL_STR;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user