diff options
author | mjg <mjg@FreeBSD.org> | 2015-04-11 15:40:28 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2015-04-11 15:40:28 +0000 |
commit | 22da590f1183b3e1c50dcae3b7b86f7d0f98f847 (patch) | |
tree | 459507ed60c5523e27a2afd507ee8abc206839ac /sys/dev/streams | |
parent | acfe91018ea0304c15ec34504e7769688cfc6914 (diff) | |
download | FreeBSD-src-22da590f1183b3e1c50dcae3b7b86f7d0f98f847.zip FreeBSD-src-22da590f1183b3e1c50dcae3b7b86f7d0f98f847.tar.gz |
fd: remove filedesc argument from fdclose
Just accept a thread instead. This makes it consistent with fdalloc.
No functional changes.
Diffstat (limited to 'sys/dev/streams')
-rw-r--r-- | sys/dev/streams/streams.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/streams/streams.c b/sys/dev/streams/streams.c index 6a9219e..032d10c 100644 --- a/sys/dev/streams/streams.c +++ b/sys/dev/streams/streams.c @@ -180,7 +180,6 @@ MODULE_VERSION(streams, 1); static int streamsopen(struct cdev *dev, int oflags, int devtype, struct thread *td) { - struct filedesc *fdp; struct svr4_strm *st; struct socket *so; struct file *fp; @@ -236,14 +235,13 @@ streamsopen(struct cdev *dev, int oflags, int devtype, struct thread *td) return EOPNOTSUPP; } - fdp = td->td_proc->p_fd; if ((error = falloc(td, &fp, &fd, 0)) != 0) return error; /* An extra reference on `fp' has been held for us by falloc(). */ error = socreate(family, &so, type, protocol, td->td_ucred, td); if (error) { - fdclose(fdp, fp, fd, td); + fdclose(td, fp, fd); fdrop(fp, td); return error; } |