Remove some variables that are no longer used as of r271413.

Reported by:	Coverity
CID:		1238924
X-MFC-With:	r271413


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272002 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
Remove an incorrect close(2) call that was added in r271413.

Reported by:	Coverity
CID:		1238923
X-MFC-With:	r271413


git-svn-id: svn+ssh://svn.freebsd.org/base/head@272003 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f