diff options
author | Eugene Syromyatnikov <evgsyr@gmail.com> | 2018-04-04 15:47:49 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@altlinux.org> | 2018-04-04 20:32:42 +0000 |
commit | b7154bf1461cacc32065f383152491cc87baa81c (patch) | |
tree | eac6db2a726b8e1f1a1ca2fad7a602df8e6a7e3b /time.c | |
parent | 0f368cd8cb0040a405ae63aafd9227e98a8a7ed4 (diff) | |
download | strace-b7154bf1461cacc32065f383152491cc87baa81c.tar.gz |
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.
Diffstat (limited to 'time.c')
-rw-r--r-- | time.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -173,9 +173,7 @@ do_adjtimex(struct tcb *const tcp, const kernel_ulong_t addr) if (print_timex(tcp, addr)) return 0; tcp->auxstr = xlookup(adjtimex_state, (kernel_ulong_t) tcp->u_rval); - if (tcp->auxstr) - return RVAL_STR; - return 0; + return RVAL_STR; } SYS_FUNC(adjtimex) |