1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

There is no need to set td->td_retval[0] to -1 on error.

Confirmed by:	jhb
MFC after:	1 month
This commit is contained in:
Pawel Jakub Dawidek 2012-06-13 21:10:00 +00:00
parent acd7df97cc
commit baf946221d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237028

View File

@ -1250,7 +1250,6 @@ kern_openat(struct thread *td, int fd, char *path, enum uio_seg pathseg,
if (indx != -1)
fdclose(fdp, fp, indx, td);
fdrop(fp, td);
td->td_retval[0] = -1;
return (error);
}