diff --git a/fs/smartfs/smartfs_smart.c b/fs/smartfs/smartfs_smart.c index c276eeff30e..c5390d42015 100644 --- a/fs/smartfs/smartfs_smart.c +++ b/fs/smartfs/smartfs_smart.c @@ -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; } diff --git a/fs/vfs/fs_ioctl.c b/fs/vfs/fs_ioctl.c index 97a5056a39b..ef696a98989 100644 --- a/fs/vfs/fs_ioctl.c +++ b/fs/vfs/fs_ioctl.c @@ -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 */