fs/vfs/fs_stat.c: correct style

This commit is contained in:
Oleg Evseev 2020-05-26 10:09:37 +03:00 committed by Xiang Xiao
parent 56e7a906e5
commit 3b75201447

View file

@ -302,11 +302,12 @@ int inode_stat(FAR struct inode *inode, FAR struct stat *buf)
#if defined(CONFIG_MTD)
if (INODE_IS_MTD(inode))
{
struct mtd_geometry_s mtdgeo;
buf->st_mode = S_IFMTD;
buf->st_mode |= S_IROTH | S_IRGRP | S_IRUSR;
buf->st_mode |= S_IWOTH | S_IWGRP | S_IWUSR;
struct mtd_geometry_s mtdgeo;
if (inode->u.i_mtd
&& MTD_IOCTL(inode->u.i_mtd, MTDIOC_GEOMETRY,
(unsigned long)((uintptr_t)&mtdgeo)) >= 0)