X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=arch%2Falpha%2Fkernel%2Ftime.c;fp=arch%2Falpha%2Fkernel%2Ftime.c;h=b191cc75973751d5bdfe6137596a051a1c821b13;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=3859749810b41fd27cd74608d6678f57723f0f3d;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/arch/alpha/kernel/time.c b/arch/alpha/kernel/time.c index 385974981..b191cc759 100644 --- a/arch/alpha/kernel/time.c +++ b/arch/alpha/kernel/time.c @@ -27,7 +27,6 @@ * 2003-06-03 R. Scott Bailey * Tighten sanity in time_init from 1% (10,000 PPM) to 250 PPM */ -#include #include #include #include @@ -234,7 +233,7 @@ validate_cc_value(unsigned long cc) index = cpu->type & 0xffffffff; /* If index out of bounds, no way to validate. */ - if (index >= sizeof(cpu_hz)/sizeof(cpu_hz[0])) + if (index >= ARRAY_SIZE(cpu_hz)) return cc; /* If index contains no data, no way to validate. */