summaryrefslogtreecommitdiffstats
path: root/disk/part_dos.c
diff options
context:
space:
mode:
authorSteve Rae <srae@broadcom.com>2014-05-26 11:52:23 -0700
committerTom Rini <trini@ti.com>2014-06-05 14:44:56 -0400
commite04350d2991ed628587e94b5b6d89c24f439e172 (patch)
tree0555be057a77454135819ffc1dcfbf8dae092c2f /disk/part_dos.c
parentdedf37bb61b2a4893f51f7aea2f37fe70d77ab0c (diff)
downloadtalos-obmc-uboot-e04350d2991ed628587e94b5b6d89c24f439e172.tar.gz
talos-obmc-uboot-e04350d2991ed628587e94b5b6d89c24f439e172.zip
disk: part_efi: clarify lbaint_t usage
- update the comments regarding lbaint_t usage - cleanup casting of values related to the lbaint_t type - cleanup of a type that requires a u64 Tested on little endian ARMv7 and ARMv8 configurations Signed-off-by: Steve Rae <srae@broadcom.com>
Diffstat (limited to 'disk/part_dos.c')
-rw-r--r--disk/part_dos.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/disk/part_dos.c b/disk/part_dos.c
index 05c3933c32..b0c3af5720 100644
--- a/disk/part_dos.c
+++ b/disk/part_dos.c
@@ -199,8 +199,9 @@ static int get_partition_info_extended (block_dev_desc_t *dev_desc, int ext_part
(part_num == which_part) &&
(is_extended(pt->sys_ind) == 0)) {
info->blksz = 512;
- info->start = ext_part_sector + le32_to_int (pt->start4);
- info->size = le32_to_int (pt->size4);
+ info->start = (lbaint_t)(ext_part_sector +
+ le32_to_int(pt->start4));
+ info->size = (lbaint_t)le32_to_int(pt->size4);
switch(dev_desc->if_type) {
case IF_TYPE_IDE:
case IF_TYPE_SATA:
OpenPOWER on IntegriCloud