From b545b1cfa11001abb9631403bb55140b333a62e9 Mon Sep 17 00:00:00 2001 From: Kenneth R Westerback Date: Sat, 1 Jul 2006 16:50:34 +0000 Subject: Eliminate redundant get_le() in favour of letoh32(). Add letoh32() calls in alpha, hppa, hppa64 and mips63 when accessing the two DOS MBR u_int32_t fields dp_size and dp_start. No functional change. --- sys/arch/i386/include/disklabel.h | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'sys/arch/i386/include') diff --git a/sys/arch/i386/include/disklabel.h b/sys/arch/i386/include/disklabel.h index 7b7e39e3762..7510dde1d35 100644 --- a/sys/arch/i386/include/disklabel.h +++ b/sys/arch/i386/include/disklabel.h @@ -1,4 +1,4 @@ -/* $OpenBSD: disklabel.h,v 1.27 2004/11/10 10:36:12 grange Exp $ */ +/* $OpenBSD: disklabel.h,v 1.28 2006/07/01 16:50:33 krw Exp $ */ /* $NetBSD: disklabel.h,v 1.3 1996/03/09 20:52:54 ghudson Exp $ */ /* @@ -96,18 +96,4 @@ struct cpu_disklabel { #define DPSECT(s) ((s) & 0x3f) #define DPCYL(c, s) ((c) + (((s) & 0xc0) << 2)) -static __inline u_int32_t get_le(void *); - -static __inline u_int32_t -get_le(void *p) -{ - u_int8_t *_p = (u_int8_t *)p; - u_int32_t x; - x = _p[0]; - x |= _p[1] << 8; - x |= _p[2] << 16; - x |= _p[3] << 24; - return x; -} - #endif /* _MACHINE_DISKLABEL_H_ */ -- cgit v1.2.3