!1166 fix: 修复告警

Merge pull request !1166 from Zhaotianyu/20230526fix_codecheck
This commit is contained in:
openharmony_ci
2023-09-05 13:36:55 +00:00
committed by Gitee
2 changed files with 20 additions and 14 deletions
+4 -4
View File
@@ -490,14 +490,14 @@ off_t VfsJffs2Seek(struct file *filep, off_t offset, int whence)
filePos = filep->f_pos;
switch (whence) {
case SEEK_SET:
filePos = offset;
break;
case SEEK_CUR:
filePos += offset;
break;
case SEEK_SET:
filePos = offset;
break;
case SEEK_END:
filePos = node->i_size + offset;
break;