Fix vfs/fs_fstatfs.c:60:21: warning: variable 'inode' set but not used
60 | FAR struct inode *inode; | ^~~~~ Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
43223124ec
commit
744da99250
@ -57,7 +57,9 @@
|
|||||||
int fstatfs(int fd, FAR struct statfs *buf)
|
int fstatfs(int fd, FAR struct statfs *buf)
|
||||||
{
|
{
|
||||||
FAR struct file *filep;
|
FAR struct file *filep;
|
||||||
|
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||||
FAR struct inode *inode;
|
FAR struct inode *inode;
|
||||||
|
#endif
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
DEBUGASSERT(buf != NULL);
|
DEBUGASSERT(buf != NULL);
|
||||||
@ -72,11 +74,11 @@ int fstatfs(int fd, FAR struct statfs *buf)
|
|||||||
goto errout;
|
goto errout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
||||||
/* Get the inode from the file structure */
|
/* Get the inode from the file structure */
|
||||||
|
|
||||||
inode = filep->f_inode;
|
inode = filep->f_inode;
|
||||||
|
|
||||||
#ifndef CONFIG_DISABLE_MOUNTPOINT
|
|
||||||
/* The way we handle the stat depends on the type of inode that we
|
/* The way we handle the stat depends on the type of inode that we
|
||||||
* are dealing with.
|
* are dealing with.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user