mirror of
https://github.com/apache/nuttx.git
synced 2026-05-22 05:42:05 +08:00
Fix some recently introduced errors
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user