Re: [PATCH 2.6.7-mm1] MBR centralization

From: Andrew Morton
Date: Wed Jun 23 2004 - 16:06:29 EST


FabF <fabian.frederick@xxxxxxxxx> 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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/