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/nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 80004ef07d fs/nfs: fix coding style issue
80004ef07d is described below

commit 80004ef07db5f7ef43a738fb2c3b30048836bc36
Author: dongjiuzhu1 <dongjiuz...@xiaomi.com>
AuthorDate: Tue Aug 1 09:58:01 2023 +0800

    fs/nfs: fix coding style issue
    
    Signed-off-by: dongjiuzhu1 <dongjiuz...@xiaomi.com>
---
 fs/nfs/nfs_vfsops.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/fs/nfs/nfs_vfsops.c b/fs/nfs/nfs_vfsops.c
index 112869758e..be6c289781 100644
--- a/fs/nfs/nfs_vfsops.c
+++ b/fs/nfs/nfs_vfsops.c
@@ -1252,19 +1252,19 @@ static off_t nfs_seek(FAR struct file *filep, off_t 
offset, int whence)
   switch (whence)
     {
       case SEEK_SET:
-          break;
+        break;
 
       case SEEK_CUR:
-          offset += filep->f_pos;
-          break;
+        offset += filep->f_pos;
+        break;
 
       case SEEK_END:
-          offset += np->n_size;
-          break;
+        offset += np->n_size;
+        break;
 
       default:
-          nxmutex_unlock(&nmp->nm_lock);
-          return -EINVAL;
+        nxmutex_unlock(&nmp->nm_lock);
+        return -EINVAL;
     }
 
   if (offset >= 0)

Reply via email to