mirror of
https://github.com/apache/nuttx.git
synced 2026-06-08 01:42:58 +08:00
Sources and Docs: Fix typos and nxstyle issues
Documentation/contributing/coding_style.rst:
* Fix repeated words: ("this this").
* Remove trailing spaces.
boards/z80/z80/z80sim/README.txt:
* Fix repeated words: ("this this") and rewrap lines.
graphics/Kconfig,
libs/libc/math/Kconfig:
* Fix repeated words: ("this this").
arch/arm/src/armv7-a/arm_assert.c,
arch/arm/src/armv7-r/arm_assert.c,
arch/arm/src/imxrt/imxrt_enet.c,
arch/arm/src/kinetis/kinetis_enet.c,
arch/arm/src/kinetis/kinetis_flexcan.c,
arch/arm/src/s32k1xx/s32k1xx_enet.c,
arch/arm/src/s32k1xx/s32k1xx_flexcan.c,
arch/arm/src/stm32/stm32_pwm.c,
arch/arm/src/stm32h7/stm32_pwm.c,
arch/arm/src/stm32l4/stm32l4_pwm.c,
arch/renesas/src/rx65n/rx65n_usbdev.c,
binfmt/libnxflat/libnxflat_bind.c,
drivers/pipes/pipe_common.c,
net/igmp/igmp_input.c,
net/tcp/tcp_conn.c,
sched/sched/sched_roundrobin.c:
* Fix typo in comment ("this this").
arch/arm/src/cxd56xx/cxd56_usbdev.c,
arch/arm/src/lc823450/lc823450_usbdev.c:
* Fix typo in comment and rewrap lines.
arch/arm/src/imxrt/imxrt_usbdev.c,
arch/arm/src/stm32/stm32_dac.c,
arch/arm/src/stm32f0l0g0/stm32_pwm.c,
arch/arm/src/stm32f7/stm32_pwm.c,
arch/arm/src/tiva/lm/lm4f_gpio.h,
fs/nxffs/nxffs_write.c,
include/nuttx/analog/pga11x.h,
include/nuttx/usb/usbdev.h,
net/mld/mld_join.c:
* Fix typo in comment ("this this").
* Fix nxstyle issues.
This commit is contained in:
committed by
Alin Jerpelea
parent
3f461f59ba
commit
80ce7800a9
+16
-7
@@ -227,7 +227,9 @@ static inline int nxffs_wralloc(FAR struct nxffs_volume_s *volume,
|
||||
ret = nxffs_hdrerased(volume, wrfile, mindata);
|
||||
if (ret == OK)
|
||||
{
|
||||
/* Valid memory for the data block was found. Return success. */
|
||||
/* Valid memory for the data block was found. Return
|
||||
* success.
|
||||
*/
|
||||
|
||||
return OK;
|
||||
}
|
||||
@@ -519,7 +521,8 @@ static inline ssize_t nxffs_zappend(FAR struct nxffs_volume_s *volume,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
ssize_t nxffs_write(FAR struct file *filep, FAR const char *buffer, size_t buflen)
|
||||
ssize_t nxffs_write(FAR struct file *filep, FAR const char *buffer,
|
||||
size_t buflen)
|
||||
{
|
||||
FAR struct nxffs_volume_s *volume;
|
||||
FAR struct nxffs_wrfile_s *wrfile;
|
||||
@@ -590,7 +593,9 @@ ssize_t nxffs_write(FAR struct file *filep, FAR const char *buffer, size_t bufle
|
||||
|
||||
nxffs_ioseek(volume, wrfile->doffset);
|
||||
|
||||
/* Verify that the FLASH data that was previously written is still intact */
|
||||
/* Verify that the FLASH data that was previously written is still
|
||||
* intact
|
||||
*/
|
||||
|
||||
ret = nxffs_reverify(volume, wrfile);
|
||||
if (ret < 0)
|
||||
@@ -606,7 +611,8 @@ ssize_t nxffs_write(FAR struct file *filep, FAR const char *buffer, size_t bufle
|
||||
nwritten = nxffs_wrappend(volume, wrfile, &buffer[total], remaining);
|
||||
if (nwritten < 0)
|
||||
{
|
||||
ferr("ERROR: Failed to append to FLASH to a data block: %d\n", -ret);
|
||||
ferr("ERROR: Failed to append to FLASH to a data block: %d\n",
|
||||
-ret);
|
||||
goto errout_with_semaphore;
|
||||
}
|
||||
|
||||
@@ -684,7 +690,9 @@ int nxffs_wrextend(FAR struct nxffs_volume_s *volume,
|
||||
|
||||
nxffs_ioseek(volume, wrfile->doffset);
|
||||
|
||||
/* Verify that the FLASH data that was previously written is still intact */
|
||||
/* Verify that the FLASH data that was previously written is still
|
||||
* intact
|
||||
*/
|
||||
|
||||
ret = nxffs_reverify(volume, wrfile);
|
||||
if (ret < 0)
|
||||
@@ -898,7 +906,7 @@ int nxffs_wrverify(FAR struct nxffs_volume_s *volume, size_t size)
|
||||
|
||||
if (nerased >= size)
|
||||
{
|
||||
/* Yes.. this this is where we will put the object */
|
||||
/* Yes.. this is where we will put the object */
|
||||
|
||||
off_t offset =
|
||||
volume->ioblock * volume->geo.blocksize + iooffset;
|
||||
@@ -1005,7 +1013,8 @@ int nxffs_wrblkhdr(FAR struct nxffs_volume_s *volume,
|
||||
* begin the search for the next inode header or data block.
|
||||
*/
|
||||
|
||||
volume->froffset = (wrfile->doffset + wrfile->datlen + SIZEOF_NXFFS_DATA_HDR);
|
||||
volume->froffset = (wrfile->doffset + wrfile->datlen +
|
||||
SIZEOF_NXFFS_DATA_HDR);
|
||||
|
||||
/* wrfile->file.entry:
|
||||
* datlen: Total file length accumulated so far. When the file is
|
||||
|
||||
Reference in New Issue
Block a user