diff options
author | Jason Zhu <jason.zhu@rock-chips.com> | 2019-04-09 16:56:50 +0800 |
---|---|---|
committer | Jianhong Chen <chenjh@rock-chips.com> | 2019-04-10 14:43:52 +0800 |
commit | e65f23e90c404d909d0f5d47c829396c247a7986 (patch) | |
tree | 5f49510bd3320244ea86fc57d0c674f561498e0d | |
parent | e7c691e7c7f2adc936d0d5670e3b1eb245fd5826 (diff) |
disk: rkparam: fix get disk part size error
The disk part size is defined as number of blocks in partition rather
than bytes.So delete "<< 9".
Change-Id: I4428e5965c6456fcc69fb601d18a97fc48210617
Signed-off-by: Jason Zhu <jason.zhu@rock-chips.com>
-rw-r--r-- | disk/part_rkparm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/disk/part_rkparm.c b/disk/part_rkparm.c index 156608cf8b..6d9221f6b6 100644 --- a/disk/part_rkparm.c +++ b/disk/part_rkparm.c @@ -277,7 +277,7 @@ static int part_get_info_rkparm(struct blk_desc *dev_desc, int idx, } info->start = p->start; - info->size = p->size << 9; + info->size = p->size; info->blksz = dev_desc->blksz; sprintf((char *)info->name, "%s", p->name); |