Date: Wed, 13 Jun 2012 21:10:00 +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: r237028 - head/sys/kern Message-ID: <201206132110.q5DLA0rb048990@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pjd Date: Wed Jun 13 21:10:00 2012 New Revision: 237028 URL: http://svn.freebsd.org/changeset/base/237028 Log: There is no need to set td->td_retval[0] to -1 on error. Confirmed by: jhb MFC after: 1 month Modified: head/sys/kern/vfs_syscalls.c Modified: head/sys/kern/vfs_syscalls.c ============================================================================== --- head/sys/kern/vfs_syscalls.c Wed Jun 13 21:03:01 2012 (r237027) +++ head/sys/kern/vfs_syscalls.c Wed Jun 13 21:10:00 2012 (r237028) @@ -1250,7 +1250,6 @@ bad_unlocked: if (indx != -1) fdclose(fdp, fp, indx, td); fdrop(fp, td); - td->td_retval[0] = -1; return (error); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206132110.q5DLA0rb048990>