diff options
author | pjd <pjd@FreeBSD.org> | 2012-06-07 23:08:18 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2012-06-07 23:08:18 +0000 |
commit | 576bf7639b8888f1c5f9c6984526824815bad387 (patch) | |
tree | ca0421206350d4282f2d631abb7b61720a29ba46 /sys/kern/tty.c | |
parent | 3479b2c8d6a01134bbcd74b00f1107b64c067158 (diff) | |
download | FreeBSD-src-576bf7639b8888f1c5f9c6984526824815bad387.zip FreeBSD-src-576bf7639b8888f1c5f9c6984526824815bad387.tar.gz |
Eliminate redundant variable.
Sponsored by: FreeBSD Foundation
MFC after: 1 week
Diffstat (limited to 'sys/kern/tty.c')
-rw-r--r-- | sys/kern/tty.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index 9b74370..7ddcb0b 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -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 |