diff --git a/fs/nxffs/nxffs_reformat.c b/fs/nxffs/nxffs_reformat.c index 338efa93d7..9f2d1a754a 100644 --- a/fs/nxffs/nxffs_reformat.c +++ b/fs/nxffs/nxffs_reformat.c @@ -178,7 +178,8 @@ static int nxffs_badblocks(FAR struct nxffs_volume_s *volume) i++, block++, blkptr += volume->geo.blocksize) #endif { - FAR struct nxffs_block_s *blkhdr = (FAR struct nxffs_block_s *)blkptr; + FAR struct nxffs_block_s *blkhdr = + (FAR struct nxffs_block_s *)blkptr; /* Assume that this is a good block until we learn otherwise */ @@ -207,8 +208,8 @@ static int nxffs_badblocks(FAR struct nxffs_volume_s *volume) if (memcmp(blkhdr->magic, g_blockmagic, NXFFS_MAGICSIZE) != 0 || blkhdr->state != BLOCK_STATE_GOOD) { - /* The block is not formatted with the NXFFS magic bytes or else - * the block is specifically marked bad. + /* The block is not formatted with the NXFFS magic bytes or + * else the block is specifically marked bad. */ good = false; @@ -220,9 +221,11 @@ static int nxffs_badblocks(FAR struct nxffs_volume_s *volume) else { - size_t blocksize = volume->geo.blocksize - SIZEOF_NXFFS_BLOCK_HDR; - size_t erasesize = nxffs_erased(&blkptr[SIZEOF_NXFFS_BLOCK_HDR], - blocksize); + size_t blocksize = volume->geo.blocksize - + SIZEOF_NXFFS_BLOCK_HDR; + size_t erasesize = nxffs_erased( + &blkptr[SIZEOF_NXFFS_BLOCK_HDR], + blocksize); good = (blocksize == erasesize); }