mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-04 12:52:15 +00:00
Remove the only use of SCARG and perform dead code elimination.
This commit is contained in:
parent
491a165843
commit
4c02bded00
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=63903
@ -323,7 +323,7 @@ linux_sigreturn(p, args)
|
||||
struct proc *p;
|
||||
struct linux_sigreturn_args *args;
|
||||
{
|
||||
struct linux_sigcontext *scp, context;
|
||||
struct linux_sigcontext context;
|
||||
register struct trapframe *regs;
|
||||
int eflags;
|
||||
|
||||
@ -338,8 +338,7 @@ linux_sigreturn(p, args)
|
||||
* It is unsafe to keep track of it ourselves, in the event that a
|
||||
* program jumps out of a signal handler.
|
||||
*/
|
||||
scp = SCARG(args,scp);
|
||||
if (copyin((caddr_t)scp, &context, sizeof(*scp)) != 0)
|
||||
if (copyin((caddr_t)args->scp, &context, sizeof(context)) != 0)
|
||||
return (EFAULT);
|
||||
|
||||
/*
|
||||
|
@ -49,10 +49,6 @@
|
||||
#include <sys/sysent.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef SCARG
|
||||
#define SCARG(p, x) (p)->x
|
||||
#endif
|
||||
|
||||
static __inline caddr_t stackgap_init(void);
|
||||
static __inline void *stackgap_alloc(caddr_t *, size_t);
|
||||
|
||||
|
@ -323,7 +323,7 @@ linux_sigreturn(p, args)
|
||||
struct proc *p;
|
||||
struct linux_sigreturn_args *args;
|
||||
{
|
||||
struct linux_sigcontext *scp, context;
|
||||
struct linux_sigcontext context;
|
||||
register struct trapframe *regs;
|
||||
int eflags;
|
||||
|
||||
@ -338,8 +338,7 @@ linux_sigreturn(p, args)
|
||||
* It is unsafe to keep track of it ourselves, in the event that a
|
||||
* program jumps out of a signal handler.
|
||||
*/
|
||||
scp = SCARG(args,scp);
|
||||
if (copyin((caddr_t)scp, &context, sizeof(*scp)) != 0)
|
||||
if (copyin((caddr_t)args->scp, &context, sizeof(context)) != 0)
|
||||
return (EFAULT);
|
||||
|
||||
/*
|
||||
|
@ -49,10 +49,6 @@
|
||||
#include <sys/sysent.h>
|
||||
#include <sys/cdefs.h>
|
||||
|
||||
#ifndef SCARG
|
||||
#define SCARG(p, x) (p)->x
|
||||
#endif
|
||||
|
||||
static __inline caddr_t stackgap_init(void);
|
||||
static __inline void *stackgap_alloc(caddr_t *, size_t);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user