From 84c1a13a30f21406f39e546684a78ebe9859e6d7 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 9 Nov 2005 12:03:42 -0800 Subject: [SPARC64]: Use ARRAY_SIZE macro Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove a duplicate of ARRAY_SIZE which is never used anyways. Signed-off-by: Tobias Klauser Signed-off-by: David S. Miller --- arch/sparc64/mm/fault.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'arch/sparc64/mm/fault.c') diff --git a/arch/sparc64/mm/fault.c b/arch/sparc64/mm/fault.c index 3be278d916db..6f0539aa44d0 100644 --- a/arch/sparc64/mm/fault.c +++ b/arch/sparc64/mm/fault.c @@ -30,8 +30,6 @@ #include #include -#define ELEMENTS(arr) (sizeof (arr)/sizeof (arr[0])) - /* * To debug kernel to catch accesses to certain virtual/physical addresses. * Mode = 0 selects physical watchpoints, mode = 1 selects virtual watchpoints. -- cgit v1.2.3