aboutsummaryrefslogtreecommitdiff
path: root/sys/amd64/amd64/trap.c
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2020-02-11 18:15:23 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2020-02-11 18:15:23 +0000
commite7ce9c32a720eba10621598f5a99cd03505f4733 (patch)
tree25358a341f682b75a28811fe74a183a0a6601fae /sys/amd64/amd64/trap.c
parent1b853b62f352ec3c6fced5411b43df27a6d7482a (diff)
downloadsrc-e7ce9c32a720eba10621598f5a99cd03505f4733.tar.gz
src-e7ce9c32a720eba10621598f5a99cd03505f4733.zip
amd64: remove redundant sa->code assignment from cpu_fetch_syscall_args_fallback
It is already set in the only caller.
Notes
Notes: svn path=/head/; revision=357767
Diffstat (limited to 'sys/amd64/amd64/trap.c')
-rw-r--r--sys/amd64/amd64/trap.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/amd64/amd64/trap.c b/sys/amd64/amd64/trap.c
index 19157ce2fb3b..08423b6182c4 100644
--- a/sys/amd64/amd64/trap.c
+++ b/sys/amd64/amd64/trap.c
@@ -993,8 +993,6 @@ cpu_fetch_syscall_args_fallback(struct thread *td, struct syscall_args *sa)
reg = 0;
regcnt = NARGREGS;
- sa->code = frame->tf_rax;
-
if (sa->code == SYS_syscall || sa->code == SYS___syscall) {
sa->code = frame->tf_rdi;
reg++;