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:
Xiang Xiao 2021-08-11 11:07:21 +08:00 committed by Gustavo Henrique Nihei
parent 62fa4b0018
commit 76904371a1
2 changed files with 0 additions and 3 deletions

View File

@ -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);

View File

@ -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.