[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:
parent
a5ee363463
commit
940fdc6e12
3 changed files with 3 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue