Eliminate redundant variable.
Sponsored by: FreeBSD Foundation MFC after: 1 week
This commit is contained in:
parent
c5d8a885d4
commit
d3644b04ca
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236730
@ -1817,9 +1817,6 @@ ttyhook_register(struct tty **rtp, struct proc *p, int fd,
|
||||
{
|
||||
struct tty *tp;
|
||||
struct file *fp;
|
||||
#ifdef CAPABILITIES
|
||||
struct file *fp_cap;
|
||||
#endif
|
||||
struct cdev *dev;
|
||||
struct cdevsw *cdp;
|
||||
struct filedesc *fdp;
|
||||
@ -1838,8 +1835,7 @@ ttyhook_register(struct tty **rtp, struct proc *p, int fd,
|
||||
}
|
||||
|
||||
#ifdef CAPABILITIES
|
||||
fp_cap = fp;
|
||||
error = cap_funwrap(fp_cap, CAP_TTYHOOK, &fp);
|
||||
error = cap_funwrap(fp, CAP_TTYHOOK, &fp);
|
||||
if (error)
|
||||
goto done1;
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user