aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc/mm/fault.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2005-11-09 12:03:05 -0800
committerDavid S. Miller <davem@davemloft.net>2005-11-09 12:03:05 -0800
commit940fdc6e1223f1323b88b7f1e7ae09a93a76b74d (patch)
tree5a4ea9eb953dedae6bc0b7828a63133f16a5902a /arch/sparc/mm/fault.c
parentMerge master.kernel.org:/pub/scm/linux/kernel/git/davej/agpgart (diff)
downloadlinux-dev-940fdc6e1223f1323b88b7f1e7ae09a93a76b74d.tar.xz
linux-dev-940fdc6e1223f1323b88b7f1e7ae09a93a76b74d.zip
[SPARC]: 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/sparc/mm/fault.c')
-rw-r--r--arch/sparc/mm/fault.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/sparc/mm/fault.c b/arch/sparc/mm/fault.c
index 2bbd53f3cafb..9eeed3347df3 100644
--- a/arch/sparc/mm/fault.c
+++ b/arch/sparc/mm/fault.c
@@ -33,8 +33,6 @@
#include <asm/kdebug.h>
#include <asm/uaccess.h>
-#define ELEMENTS(arr) (sizeof (arr)/sizeof (arr[0]))
-
extern int prom_node_root;
/* At boot time we determine these two values necessary for setting