diff options
Diffstat (limited to 'fs/ramfs.c')
-rw-r--r-- | fs/ramfs.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/ramfs.c b/fs/ramfs.c index 84ecfa0ddb..4fba40d313 100644 --- a/fs/ramfs.c +++ b/fs/ramfs.c @@ -347,13 +347,7 @@ static int ramfs_write(struct device_d *_dev, FILE *f, const void *buf, size_t i return insize; } -static loff_t ramfs_lseek(struct device_d *dev, FILE *f, loff_t pos) -{ - f->pos = pos; - return f->pos; -} - -static int ramfs_truncate(struct device_d *dev, FILE *f, ulong size) +static int ramfs_truncate(struct device_d *dev, FILE *f, loff_t size) { struct inode *inode = f->f_inode; struct ramfs_inode *node = to_ramfs_inode(inode); @@ -448,7 +442,6 @@ static void ramfs_remove(struct device_d *dev) static struct fs_driver_d ramfs_driver = { .read = ramfs_read, .write = ramfs_write, - .lseek = ramfs_lseek, .truncate = ramfs_truncate, .flags = FS_DRIVER_NO_DEV, .drv = { |