Fix some recently introduced errors
This commit is contained in:
parent
5fc610de9b
commit
1925df8faa
2 changed files with 3 additions and 3 deletions
|
@ -771,7 +771,7 @@ static ssize_t smartfs_write(FAR struct file *filep, const char *buffer,
|
|||
if (ret < 0)
|
||||
{
|
||||
ferr("ERROR: Error %d writing sector %d data\n",
|
||||
et, sf->currsector);
|
||||
ret, sf->currsector);
|
||||
goto errout_with_semaphore;
|
||||
}
|
||||
|
||||
|
|
|
@ -76,7 +76,7 @@
|
|||
int file_ioctl(FAR struct file *filep, int req, unsigned long arg)
|
||||
{
|
||||
FAR struct inode *inode;
|
||||
int ret;
|
||||
int ret = OK;
|
||||
|
||||
/* Is a driver registered? Does it support the ioctl method? */
|
||||
|
||||
|
@ -93,7 +93,7 @@ int file_ioctl(FAR struct file *filep, int req, unsigned long arg)
|
|||
}
|
||||
}
|
||||
|
||||
return OK;
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_NFILE_DESCRIPTORS > 0 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue