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

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

commit 90ab43a7f5f73a93f454b6e5c38193253a5a8352
Author: Royyan Zahir <[email protected]>
AuthorDate: Thu Oct 1 20:53:34 2026 +0400

    drivers/bch: nxstyle in bchdev_driver.c
    
    Indent the bch_seek() switch cases so the file passes nxstyle.
    
    Signed-off-by: Royyan Zahir <[email protected]>
---
 drivers/bch/bchdev_driver.c | 26 +++++++++++++-------------
 1 file changed, 13 insertions(+), 13 deletions(-)

diff --git a/drivers/bch/bchdev_driver.c b/drivers/bch/bchdev_driver.c
index a7a05859721..0d4660264c8 100644
--- a/drivers/bch/bchdev_driver.c
+++ b/drivers/bch/bchdev_driver.c
@@ -240,24 +240,24 @@ static off_t bch_seek(FAR struct file *filep, off_t 
offset, int whence)
 
   switch (whence)
     {
-    case SEEK_CUR:
-      newpos = filep->f_pos + offset;
-      break;
+      case SEEK_CUR:
+        newpos = filep->f_pos + offset;
+        break;
 
-    case SEEK_SET:
-      newpos = offset;
-      break;
+      case SEEK_SET:
+        newpos = offset;
+        break;
 
-    case SEEK_END:
-      newpos = (off_t)bch->sectsize * bch->nsectors + offset;
-      break;
+      case SEEK_END:
+        newpos = (off_t)bch->sectsize * bch->nsectors + offset;
+        break;
 
-    default:
+      default:
 
-      /* Return EINVAL if the whence argument is invalid */
+        /* Return EINVAL if the whence argument is invalid */
 
-      nxmutex_unlock(&bch->lock);
-      return -EINVAL;
+        nxmutex_unlock(&bch->lock);
+        return -EINVAL;
     }
 
   /* Opengroup.org:

Reply via email to