summaryrefslogtreecommitdiff
path: root/trans/null.c
diff options
context:
space:
mode:
Diffstat (limited to 'trans/null.c')
-rw-r--r--trans/null.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/trans/null.c b/trans/null.c
index 02b7a9c0..6995f596 100644
--- a/trans/null.c
+++ b/trans/null.c
@@ -289,9 +289,7 @@ trivfs_S_io_write (struct trivfs_protid *cred,
kern_return_t
trivfs_S_file_truncate (struct trivfs_protid *cred, off_t size)
{
- /* The zero device is `big and fixed size', so can't be truncated; the null
- device is always really truncated. */
- return provide_zeros ? EINVAL : 0;
+ return 0;
}
/* ---------------------------------------------------------------- */