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:
Gavin Atkinson 2011-04-15 12:32:52 +00:00
parent c3d0d168ae
commit 47bae5fd09

View file

@ -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);