summaryrefslogtreecommitdiffstats
path: root/fs/fat/fat_write.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 /fs/fat/fat_write.c
parentdedf37bb61b2a4893f51f7aea2f37fe70d77ab0c (diff)
downloadblackbird-obmc-uboot-e04350d2991ed628587e94b5b6d89c24f439e172.tar.gz
blackbird-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 'fs/fat/fat_write.c')
-rw-r--r--fs/fat/fat_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c
index ba7e3aeb0b..24ed5d3715 100644
--- a/fs/fat/fat_write.c
+++ b/fs/fat/fat_write.c
@@ -947,7 +947,7 @@ static int do_fat_write(const char *filename, void *buffer,
total_sector = bs.total_sect;
if (total_sector == 0)
- total_sector = cur_part_info.size;
+ total_sector = (int)cur_part_info.size; /* cast of lbaint_t */
if (mydata->fatsize == 32)
mydata->fatlength = bs.fat32_length;
OpenPOWER on IntegriCloud