fix_return_err

This commit is contained in:
zhujiale
2024-08-21 13:25:21 +08:00
committed by Bernard Xiong
parent 416ec66380
commit afa17ed343
2 changed files with 2 additions and 2 deletions

View File

@@ -265,7 +265,7 @@ static int dfs_devfs_flush(struct dfs_file *file)
static off_t dfs_devfs_lseek(struct dfs_file *file, off_t offset, int wherece)
{
off_t ret = 0;
off_t ret = -EPERM;
rt_device_t device;
RT_ASSERT(file != RT_NULL);