mirror of
https://github.com/apache/nuttx.git
synced 2026-08-20 13:08:26 +00:00
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
336222524a
commit
36e744d88a
2 changed files with 0 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue