Fix some recently introduced errors

This commit is contained in:
Sagitta Li
2016-07-09 06:41:39 -06:00
committed by Gregory Nutt
parent 5fc610de9b
commit 1925df8faa
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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
View File
@@ -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 */