summaryrefslogtreecommitdiff
path: root/time.c
diff options
context:
space:
mode:
authorEugene Syromyatnikov <evgsyr@gmail.com>2018-04-04 15:47:49 +0200
committerDmitry V. Levin <ldv@altlinux.org>2018-04-04 20:32:42 +0000
commitb7154bf1461cacc32065f383152491cc87baa81c (patch)
treeeac6db2a726b8e1f1a1ca2fad7a602df8e6a7e3b /time.c
parent0f368cd8cb0040a405ae63aafd9227e98a8a7ed4 (diff)
downloadstrace-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/time.c b/time.c
index 31f44fc65..fa8c9db4d 100644
--- a/time.c
+++ b/time.c
@@ -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)