[PATCH] USB: Use ARRAY_SIZE macro

Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove
duplicates of ARRAY_SIZE. Some trailing whitespaces are also removed.

Patch is compile-tested on i386.

Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Cette révision appartient à :
Tobias Klauser
2005-12-11 16:20:08 +01:00
révisé par Greg Kroah-Hartman
Parent f3d34ed48c
révision 52950ed40d
11 fichiers modifiés avec 24 ajouts et 35 suppressions

Voir le fichier

@@ -31,9 +31,6 @@
#ifndef HIGH8
#define HIGH8(a) ((unsigned char)((a & 0xff00) >> 8))
#endif
#ifndef NUM_ENTRIES
#define NUM_ENTRIES(x) (sizeof(x)/sizeof((x)[0]))
#endif
#ifndef __KERNEL__
#define __KERNEL__