m68k: ARRAY_SIZE() cleanup
authorAlejandro Martinez Ruiz <alex@flawedcode.org>
Tue, 5 Feb 2008 06:30:17 +0000 (22:30 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 5 Feb 2008 17:44:23 +0000 (09:44 -0800)
Signed-off-by: Alejandro Martinez Ruiz <alex@flawedcode.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/m68k/amiga/amisound.c

index 1f5bfb58429783be182e8aad94d2a5f94eb28d7d..92a92fbb6122a6a6938a22d42015e1612c7e2992 100644 (file)
@@ -21,7 +21,7 @@ static const signed char sine_data[] = {
        0,  39,  75,  103,  121,  127,  121,  103,  75,  39,
        0, -39, -75, -103, -121, -127, -121, -103, -75, -39
 };
-#define DATA_SIZE      (sizeof(sine_data)/sizeof(sine_data[0]))
+#define DATA_SIZE      ARRAY_SIZE(sine_data)
 
 #define custom amiga_custom