summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1994-05-26 00:34:18 +0000
committerRoland McGrath <roland@gnu.org>1994-05-26 00:34:18 +0000
commitec12040856becd0c795be579c6672141254eb5bd (patch)
treeb511ed6969079c0dcc07484543ddfefe103f5764 /libdiskfs
parent864e9d6b2186728205a4ad833616795fd14f3f3f (diff)
Formerly io-write.c.~5~
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/io-write.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/libdiskfs/io-write.c b/libdiskfs/io-write.c
index d604d98e..e44b57b5 100644
--- a/libdiskfs/io-write.c
+++ b/libdiskfs/io-write.c
@@ -21,11 +21,11 @@
/* Implement io_write as described in <hurd/io.defs>. */
kern_return_t
-diskfs_S_io_write(struct protid *cred,
- char *data,
- unsigned int datalen,
- off_t offset,
- int *amt)
+diskfs_S_io_write (struct protid *cred,
+ char *data,
+ unsigned int datalen,
+ off_t offset,
+ int *amt)
{
struct node *np;
error_t err;
@@ -37,8 +37,6 @@ diskfs_S_io_write(struct protid *cred,
np = cred->po->np;
if (!(cred->po->openstat & O_WRITE))
return EBADF;
- if (*amt < 0)
- return EINVAL;
mutex_lock (&np->lock);