From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754194AbYA0MgE (ORCPT ); Sun, 27 Jan 2008 07:36:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754001AbYA0MfA (ORCPT ); Sun, 27 Jan 2008 07:35:00 -0500 Received: from edna.telenet-ops.be ([195.130.132.58]:60751 "EHLO edna.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572AbYA0Me5 (ORCPT ); Sun, 27 Jan 2008 07:34:57 -0500 Message-Id: <20080127123356.064666842@mail.of.borg> References: <20080127123216.897698766@mail.of.borg> User-Agent: quilt/0.46-1 Date: Sun, 27 Jan 2008 13:32:18 +0100 From: Geert Uytterhoeven To: Linus Torvalds , Andrew Morton Cc: linux-m68k@vger.kernel.org, linux-kernel@vger.kernel.org, Alejandro Martinez Ruiz Subject: [patch 02/14] m68k: ARRAY_SIZE() cleanup Content-Disposition: inline; filename=m68k-ARRAY_SIZE-cleanup.diff Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Alejandro Martinez Ruiz m68k: ARRAY_SIZE() cleanup Signed-off-by: Alejandro Martinez Ruiz Signed-off-by: Geert Uytterhoeven --- arch/m68k/amiga/amisound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/m68k/amiga/amisound.c +++ b/arch/m68k/amiga/amisound.c @@ -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 -- Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds