[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>
This commit is contained in:
Tobias Klauser 2005-11-09 12:03:05 -08:00 committed by David S. Miller
commit 940fdc6e12
3 changed files with 3 additions and 5 deletions

View file

@ -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