mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove the only use of SCARG and perform dead code elimination.
This commit is contained in:
parent
491a165843
commit
4c02bded00
4 changed files with 4 additions and 14 deletions
|
|
@ -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 a new issue