mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-07 07:49:29 -05:00
fix cylinder rounding in ptgen
SVN-Revision: 6352
This commit is contained in:
@@ -114,7 +114,7 @@ static void to_chs(long sect, unsigned char chs[3]) {
|
||||
static inline unsigned long round_to_cyl(long sect) {
|
||||
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 */
|
||||
|
||||
Reference in New Issue
Block a user