summaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/io_edgeport.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@nuerscht.ch>2005-12-11 16:20:08 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2006-01-04 13:51:43 -0800
commit52950ed40dc97456209979af1d8f51b63cf6dcab (patch)
tree527fb1a339889b3df9d227b1c17f87bc487f397f /drivers/usb/serial/io_edgeport.h
parentf3d34ed48c80903544b509031fee64838d29f35f (diff)
downloadblackbird-op-linux-52950ed40dc97456209979af1d8f51b63cf6dcab.tar.gz
blackbird-op-linux-52950ed40dc97456209979af1d8f51b63cf6dcab.zip
[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>
Diffstat (limited to 'drivers/usb/serial/io_edgeport.h')
-rw-r--r--drivers/usb/serial/io_edgeport.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/usb/serial/io_edgeport.h b/drivers/usb/serial/io_edgeport.h
index 5112d7aac055..123fa8a904e6 100644
--- a/drivers/usb/serial/io_edgeport.h
+++ b/drivers/usb/serial/io_edgeport.h
@@ -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__
OpenPOWER on IntegriCloud