From f8f776dd183246ad8890422c1ee5e8f33ab2aaaf Mon Sep 17 00:00:00 2001 From: Amogh Hassija Date: Fri, 26 Aug 2022 13:54:29 +0530 Subject: [PATCH] os/fs: Fix spelling/grammatical mistakes - Fix spelling mistakes at a few places. - Update comment indentation for better grammatical understanding. Signed-off-by: Amogh Hassija --- os/fs/driver/mtd/smart.c | 8 ++++---- os/fs/smartfs/smartfs.h | 2 +- os/fs/smartfs/smartfs_smart.c | 4 ++-- os/fs/smartfs/smartfs_utils.c | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/os/fs/driver/mtd/smart.c b/os/fs/driver/mtd/smart.c index e66c4fff40..9b153a625c 100644 --- a/os/fs/driver/mtd/smart.c +++ b/os/fs/driver/mtd/smart.c @@ -433,7 +433,7 @@ struct smart_journal_entry_s { uint8_t crc16[2]; /* CRC-16 for current journal data */ uint8_t psector[2]; /* Target Physical Sector, For MTD_ERASE, Target Physical Block */ uint8_t seq[2]; /* Sequence number of Journal for validation check */ - uint8_t status; /* Journal Staus low 4bits for state, high 4bits for type */ + uint8_t status; /* Journal Status low 4bits for state, high 4bits for type */ }; typedef struct smart_journal_entry_s journal_log_t; @@ -932,9 +932,9 @@ static ssize_t smart_write(FAR struct inode *inode, FAR const unsigned char *buf /* I think maybe we need to lock on a mutex here. */ - /* Get the aligned block. Here is is assumed: (1) The number of R/W blocks - * per erase block is a power of 2, and (2) the erase begins with that same - * alignment. + /* Get the aligned block. Here it is assumed that: + * (1) The number of R/W blocks per erase block is a power of 2, and + * (2) the erase begins with that same alignment. */ mask = dev->sectorsPerBlk - 1; diff --git a/os/fs/smartfs/smartfs.h b/os/fs/smartfs/smartfs.h index 96bf0f915a..0f00fbe817 100644 --- a/os/fs/smartfs/smartfs.h +++ b/os/fs/smartfs/smartfs.h @@ -175,7 +175,7 @@ #define INODE_STATE_FILE (CONFIG_NXFFS_ERASEDSTATE ^ 0x22) #define INODE_STATE_DELETED (CONFIG_NXFFS_ERASEDSTATE ^ 0xaa) -/* Smartfs worbuffer maxuimum length */ +/* Smartfs workbuffer maximum length */ #define SMARTFS_MAX_WORKBUFFER_LEN 256 diff --git a/os/fs/smartfs/smartfs_smart.c b/os/fs/smartfs/smartfs_smart.c index b953437078..7739894487 100644 --- a/os/fs/smartfs/smartfs_smart.c +++ b/os/fs/smartfs/smartfs_smart.c @@ -1246,7 +1246,7 @@ static int smartfs_bind(FAR struct inode *blkdriver, const void *data, void **ha } /* If the global semaphore hasn't been initialized, then - * initialized it now. */ + * initialize it now. */ fs->fs_sem = &g_sem; if (!g_seminitialized) { @@ -1259,7 +1259,7 @@ static int smartfs_bind(FAR struct inode *blkdriver, const void *data, void **ha } /* Initialize the allocated mountpt state structure. The filesystem is - * responsible for one reference ont the blkdriver inode and does not + * responsible for one reference on the blkdriver inode and does not * have to addref() here (but does have to release in ubind(). */ diff --git a/os/fs/smartfs/smartfs_utils.c b/os/fs/smartfs/smartfs_utils.c index cf4f0e7585..bf0c7fbb4b 100644 --- a/os/fs/smartfs/smartfs_utils.c +++ b/os/fs/smartfs/smartfs_utils.c @@ -1609,7 +1609,7 @@ int smartfs_writeentry(struct smartfs_mountpt_s *fs, struct smartfs_entry_s new_ if (new_entry.prev_parent != new_entry.dsector) { - /* Chain the next sector into this sector sector */ + /* Chain the next sector into this sector */ nextsector = new_entry.dsector; smartfs_setbuffer(&readwrite, new_entry.prev_parent, offsetof(struct smartfs_chain_header_s, nextsector), sizeof(uint16_t), (uint8_t *)&nextsector);