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>
This commit is contained in:
Jason Zhu 2019-04-09 16:56:50 +08:00 committed by Jianhong Chen
parent e7c691e7c7
commit e65f23e90c
1 changed files with 1 additions and 1 deletions

View File

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