examples/mtdrwb/mtdrwb_main.c: Appease nxstyle

This commit is contained in:
YAMAMOTO Takashi 2020-11-11 08:56:16 +09:00 committed by Xiang Xiao
parent ffc32ad70d
commit 3993e99471

View File

@ -55,6 +55,7 @@
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/
/* Configuration ************************************************************/
#if !defined(CONFIG_MTD_WRBUFFER) && !defined(CONFIG_MTD_READAHEAD)
@ -75,7 +76,9 @@
# error "CONFIG_RAMMTD is required without CONFIG_EXAMPLES_MTDRWB_ARCHINIT"
# endif
/* This must exactly match the default configuration in drivers/mtd/rammtd.c */
/* This must exactly match the default configuration in
* drivers/mtd/rammtd.c
*/
# ifndef CONFIG_RAMMTD_ERASESIZE
# define CONFIG_RAMMTD_ERASESIZE 4096
@ -110,6 +113,7 @@ struct mtdweb_filedesc_s
/****************************************************************************
* Private Data
****************************************************************************/
/* Pre-allocated simulated flash */
#ifndef CONFIG_EXAMPLES_MTDRWB_ARCHINIT
@ -209,7 +213,8 @@ int main(int argc, FAR char *argv[])
/* Get the geometry of the FLASH device */
ret = mtdrwb->ioctl(mtdrwb, MTDIOC_GEOMETRY, (unsigned long)((uintptr_t)&geo));
ret = mtdrwb->ioctl(mtdrwb, MTDIOC_GEOMETRY,
(unsigned long)((uintptr_t)&geo));
if (ret < 0)
{
ferr("ERROR: mtdrwb->ioctl failed: %d\n", ret);