Date: Thu, 7 Jun 2012 23:08:19 +0000 (UTC) From: Pawel Jakub Dawidek <pjd@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r236730 - head/sys/kern Message-ID: <201206072308.q57N8JYG017217@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Thu Jun 7 23:08:18 2012 New Revision: 236730 URL: http://svn.freebsd.org/changeset/base/236730 Log: Eliminate redundant variable. Sponsored by: FreeBSD Foundation MFC after: 1 week Modified: head/sys/kern/tty.c Modified: head/sys/kern/tty.c ============================================================================== --- head/sys/kern/tty.c Thu Jun 7 22:57:26 2012 (r236729) +++ head/sys/kern/tty.c Thu Jun 7 23:08:18 2012 (r236730) @@ -1817,9 +1817,6 @@ ttyhook_register(struct tty **rtp, struc { 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, struc } #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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206072308.q57N8JYG017217>