mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-13 14:06:07 -04:00
disk: part_dos: checkpatch cleanups
Minor cleanups required so later patches don't trigger checkpatch. Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
parent
b4414f4a4a
commit
304b571130
@ -65,7 +65,8 @@ static inline int is_bootable(dos_partition_t *p)
|
|||||||
return p->boot_ind == 0x80;
|
return p->boot_ind == 0x80;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void print_one_part (dos_partition_t *p, int ext_part_sector, int part_num)
|
static void print_one_part(dos_partition_t *p, int ext_part_sector,
|
||||||
|
int part_num)
|
||||||
{
|
{
|
||||||
int lba_start = ext_part_sector + le32_to_int (p->start4);
|
int lba_start = ext_part_sector + le32_to_int (p->start4);
|
||||||
int lba_size = le32_to_int (p->size4);
|
int lba_size = le32_to_int (p->size4);
|
||||||
@ -105,7 +106,8 @@ int test_part_dos (block_dev_desc_t *dev_desc)
|
|||||||
|
|
||||||
/* Print a partition that is relative to its Extended partition table
|
/* Print a partition that is relative to its Extended partition table
|
||||||
*/
|
*/
|
||||||
static void print_partition_extended (block_dev_desc_t *dev_desc, int ext_part_sector, int relative,
|
static void print_partition_extended(block_dev_desc_t *dev_desc,
|
||||||
|
int ext_part_sector, int relative,
|
||||||
int part_num)
|
int part_num)
|
||||||
{
|
{
|
||||||
ALLOC_CACHE_ALIGN_BUFFER(unsigned char, buffer, dev_desc->blksz);
|
ALLOC_CACHE_ALIGN_BUFFER(unsigned char, buffer, dev_desc->blksz);
|
||||||
@ -152,8 +154,7 @@ static void print_partition_extended (block_dev_desc_t *dev_desc, int ext_part_s
|
|||||||
int lba_start = le32_to_int (pt->start4) + relative;
|
int lba_start = le32_to_int (pt->start4) + relative;
|
||||||
|
|
||||||
print_partition_extended(dev_desc, lba_start,
|
print_partition_extended(dev_desc, lba_start,
|
||||||
ext_part_sector == 0 ? lba_start
|
ext_part_sector == 0 ? lba_start : relative,
|
||||||
: relative,
|
|
||||||
part_num);
|
part_num);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user