fs/vfs: Remove warning generated by fcntl()
This commit is contained in:
parent
9ea215f2e4
commit
9232da4af8
@ -77,7 +77,7 @@
|
|||||||
#if CONFIG_NFILE_DESCRIPTORS > 0
|
#if CONFIG_NFILE_DESCRIPTORS > 0
|
||||||
int file_vfcntl(FAR struct file *filep, int cmd, va_list ap)
|
int file_vfcntl(FAR struct file *filep, int cmd, va_list ap)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret = -EINVAL;
|
||||||
|
|
||||||
/* Was this file opened ? */
|
/* Was this file opened ? */
|
||||||
|
|
||||||
@ -205,7 +205,6 @@ int file_vfcntl(FAR struct file *filep, int cmd, va_list ap)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
ret = -EINVAL;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user