mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-02 12:56:20 +02:00
parent
d398dc0309
commit
aa22253602
|
@ -114,7 +114,7 @@ static void to_chs(long sect, unsigned char chs[3]) {
|
||||||
static inline unsigned long round_to_cyl(long sect) {
|
static inline unsigned long round_to_cyl(long sect) {
|
||||||
int cyl_size = heads * sectors;
|
int cyl_size = heads * sectors;
|
||||||
|
|
||||||
return sect + cyl_size - ((sect % cyl_size) ?: cyl_size);
|
return sect + cyl_size - (sect % cyl_size);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check the partition sizes and write the partition table */
|
/* check the partition sizes and write the partition table */
|
||||||
|
|
Loading…
Reference in New Issue