fs/nxffs/nxffs_reformat.c: Appease nxstyle
This commit is contained in:
parent
d22c8a2a31
commit
d28d5a29c2
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user