diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2005-11-09 15:03:42 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2005-11-09 15:03:42 -0500 |
commit | 84c1a13a30f21406f39e546684a78ebe9859e6d7 (patch) | |
tree | 296330a7d501eb349070363df28da70b10a62963 /arch/sparc64/mm | |
parent | 940fdc6e1223f1323b88b7f1e7ae09a93a76b74d (diff) |
[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 <tklauser@nuerscht.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64/mm')
-rw-r--r-- | arch/sparc64/mm/fault.c | 2 |
1 files changed, 0 insertions, 2 deletions
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 @@ | |||
30 | #include <asm/sections.h> | 30 | #include <asm/sections.h> |
31 | #include <asm/kdebug.h> | 31 | #include <asm/kdebug.h> |
32 | 32 | ||
33 | #define ELEMENTS(arr) (sizeof (arr)/sizeof (arr[0])) | ||
34 | |||
35 | /* | 33 | /* |
36 | * To debug kernel to catch accesses to certain virtual/physical addresses. | 34 | * To debug kernel to catch accesses to certain virtual/physical addresses. |
37 | * Mode = 0 selects physical watchpoints, mode = 1 selects virtual watchpoints. | 35 | * Mode = 0 selects physical watchpoints, mode = 1 selects virtual watchpoints. |