You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/05/26 08:56:16 UTC

[incubator-nuttx] branch master updated: fs/vfs/fs_stat.c: correct style

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 3b75201  fs/vfs/fs_stat.c: correct style
3b75201 is described below

commit 3b75201447b14918cccb6a3117415251dc2354f4
Author: Oleg Evseev <ev...@gmail.com>
AuthorDate: Tue May 26 10:09:37 2020 +0300

    fs/vfs/fs_stat.c: correct style
---
 fs/vfs/fs_stat.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/fs/vfs/fs_stat.c b/fs/vfs/fs_stat.c
index 74b11e9..ef72e0d 100644
--- a/fs/vfs/fs_stat.c
+++ b/fs/vfs/fs_stat.c
@@ -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)