Eliminate redundant variable.

Sponsored by:	FreeBSD Foundation
MFC after:	1 week
This commit is contained in:
Pawel Jakub Dawidek 2012-06-07 23:08:18 +00:00
parent c5d8a885d4
commit d3644b04ca
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=236730

View File

@ -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