[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 à :

révisé par
Greg Kroah-Hartman

Parent
f3d34ed48c
révision
52950ed40d
@@ -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__
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur