BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lvgl
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
lvgl
Commits
94bf21b9
Commit
94bf21b9
authored
Apr 09, 2018
by
Gabor Kiss-Vamosi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lv_fs: fix duplicated error cheching
parent
a4b697f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
lv_fs.c
lv_misc/lv_fs.c
+5
-5
No files found.
lv_misc/lv_fs.c
View file @
94bf21b9
...
...
@@ -163,7 +163,7 @@ lv_fs_res_t lv_fs_remove (const char * path)
lv_fs_res_t
lv_fs_read
(
lv_fs_file_t
*
file_p
,
void
*
buf
,
uint32_t
btr
,
uint32_t
*
br
)
{
if
(
br
!=
NULL
)
*
br
=
0
;
if
(
file_p
->
drv
==
NULL
||
file_p
->
drv
==
NULL
)
return
LV_FS_RES_INV_PARAM
;
if
(
file_p
->
drv
==
NULL
)
return
LV_FS_RES_INV_PARAM
;
if
(
file_p
->
drv
->
read
==
NULL
)
return
LV_FS_RES_NOT_IMP
;
uint32_t
br_tmp
=
0
;
...
...
@@ -185,7 +185,7 @@ lv_fs_res_t lv_fs_write (lv_fs_file_t * file_p, const void * buf, uint32_t btw,
{
if
(
bw
!=
NULL
)
*
bw
=
0
;
if
(
file_p
->
drv
==
NULL
||
file_p
->
drv
==
NULL
)
{
if
(
file_p
->
drv
==
NULL
)
{
return
LV_FS_RES_INV_PARAM
;
}
...
...
@@ -208,7 +208,7 @@ lv_fs_res_t lv_fs_write (lv_fs_file_t * file_p, const void * buf, uint32_t btw,
*/
lv_fs_res_t
lv_fs_seek
(
lv_fs_file_t
*
file_p
,
uint32_t
pos
)
{
if
(
file_p
->
drv
==
NULL
||
file_p
->
drv
==
NULL
)
{
if
(
file_p
->
drv
==
NULL
)
{
return
LV_FS_RES_INV_PARAM
;
}
...
...
@@ -229,7 +229,7 @@ lv_fs_res_t lv_fs_seek (lv_fs_file_t * file_p, uint32_t pos)
*/
lv_fs_res_t
lv_fs_tell
(
lv_fs_file_t
*
file_p
,
uint32_t
*
pos
)
{
if
(
file_p
->
drv
==
NULL
||
file_p
->
drv
==
NULL
)
{
if
(
file_p
->
drv
==
NULL
)
{
pos
=
0
;
return
LV_FS_RES_INV_PARAM
;
}
...
...
@@ -252,7 +252,7 @@ lv_fs_res_t lv_fs_tell (lv_fs_file_t * file_p, uint32_t * pos)
*/
lv_fs_res_t
lv_fs_size
(
lv_fs_file_t
*
file_p
,
uint32_t
*
size
)
{
if
(
file_p
->
drv
==
NULL
||
file_p
->
drv
==
NULL
)
{
if
(
file_p
->
drv
==
NULL
)
{
return
LV_FS_RES_INV_PARAM
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment