diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-02-11 18:15:23 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-02-11 18:15:23 +0000 |
commit | e7ce9c32a720eba10621598f5a99cd03505f4733 (patch) | |
tree | 25358a341f682b75a28811fe74a183a0a6601fae /sys/amd64/amd64/trap.c | |
parent | 1b853b62f352ec3c6fced5411b43df27a6d7482a (diff) | |
download | src-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.c | 2 |
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++; |