diff options
Diffstat (limited to 'fs/semihostingfs.c')
| -rw-r--r-- | fs/semihostingfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/semihostingfs.c b/fs/semihostingfs.c index 77e39ca407e..9d7a136b9ba 100644 --- a/fs/semihostingfs.c +++ b/fs/semihostingfs.c @@ -35,7 +35,7 @@ static int smh_fs_read_at(const char *filename, loff_t pos, void *buffer, } if (!maxsize) { size = smh_flen(fd); - if (ret < 0) { + if (size < 0) { smh_close(fd); return size; } |
