Messages in this thread | | | Date | Wed, 23 Jun 2004 14:06:50 -0700 | From | Andrew Morton <> | Subject | Re: [PATCH 2.6.7-mm1] MBR centralization |
| |
FabF <fabian.frederick@skynet.be> wrote: > > +/*Master boot record magic numbers*/ > +#define MSDOS_MBR_SIGNATURE 0xaa55 > +#define MSDOS_MBR(p) le16_to_cpu((u16)*p) == MSDOS_MBR_SIGNATURE
I'd make this
/* * Check for MSDOS Master Boot Record signature */ static inline int msdos_mbr(u16 v) { return le16_to_cpu(v) == 0xaa55; } - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |