From ec12040856becd0c795be579c6672141254eb5bd Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Thu, 26 May 1994 00:34:18 +0000 Subject: Formerly io-write.c.~5~ --- libdiskfs/io-write.c | 12 +++++------- 1 file 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 . */ 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); -- cgit v1.2.3