mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Remove an incorrect be16toh() that prevented geom_part_apm from working on
little-endian machines. Reviewed by: marcel MFC after: 2 weeks
This commit is contained in:
parent
c3d0d168ae
commit
47bae5fd09
1 changed files with 1 additions and 1 deletions
|
|
@ -390,7 +390,7 @@ g_part_apm_probe(struct g_part_table *basetable, struct g_consumer *cp)
|
|||
buf = g_read_data(cp, 0L, pp->sectorsize, &error);
|
||||
if (buf == NULL)
|
||||
return (error);
|
||||
if (be16dec(buf) == be16toh(APM_DDR_SIG)) {
|
||||
if (be16dec(buf) == APM_DDR_SIG) {
|
||||
/* Normal Apple DDR */
|
||||
table->ddr.ddr_sig = be16dec(buf);
|
||||
table->ddr.ddr_blksize = be16dec(buf + 2);
|
||||
|
|
|
|||
Loading…
Reference in a new issue