fs: Remove endsector from partition_info_s
since it can be computed from startsector and numsectors simply Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
62fa4b0018
commit
76904371a1
@ -424,7 +424,6 @@ static int part_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
|
||||
info->numsectors = priv->neraseblocks * priv->blkpererase;
|
||||
info->sectorsize = priv->blocksize;
|
||||
info->startsector = priv->firstblock;
|
||||
info->endsector = priv->firstblock + info->numsectors;
|
||||
|
||||
strncpy(info->parent, priv->parent->name, NAME_MAX);
|
||||
|
||||
|
@ -232,8 +232,6 @@ struct partition_info_s
|
||||
size_t sectorsize; /* Size in bytes of a single sector */
|
||||
off_t startsector; /* Offset to the first section/block of the
|
||||
* managed sub-region */
|
||||
off_t endsector; /* Offset to the last section/block of the
|
||||
* managed sub-region */
|
||||
|
||||
/* NULL-terminated string representing the name of the parent node of the
|
||||
* partition.
|
||||
|
Loading…
Reference in New Issue
Block a user