Author: mjg
Date: Tue Feb 11 18:15:23 2020
New Revision: 357767
URL: https://svnweb.freebsd.org/changeset/base/357767

Log:
  amd64: remove redundant sa->code assignment from 
cpu_fetch_syscall_args_fallback
  
  It is already set in the only caller.

Modified:
  head/sys/amd64/amd64/trap.c

Modified: head/sys/amd64/amd64/trap.c
==============================================================================
--- head/sys/amd64/amd64/trap.c Tue Feb 11 18:13:53 2020        (r357766)
+++ head/sys/amd64/amd64/trap.c Tue Feb 11 18:15:23 2020        (r357767)
@@ -993,8 +993,6 @@ cpu_fetch_syscall_args_fallback(struct thread *td, str
        reg = 0;
        regcnt = NARGREGS;
 
-       sa->code = frame->tf_rax;
-
        if (sa->code == SYS_syscall || sa->code == SYS___syscall) {
                sa->code = frame->tf_rdi;
                reg++;
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to