diff options
author | Tobias Klauser <tklauser@nuerscht.ch> | 2006-06-09 01:23:48 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.il.steeleye.com> | 2006-06-10 11:45:30 -0400 |
commit | 6391a11375de5e2bb1eb8481e54619761dc65d9f (patch) | |
tree | 956aae1d278a3f731b2e6148ff40a69aa7957ea8 /drivers/scsi/aic7xxx/aic79xx.h | |
parent | 9dc399de0840a478adb71278becf598d3ab3aacc (diff) |
[SCSI] drivers/scsi: Use ARRAY_SIZE macro
Use ARRAY_SIZE macro instead of sizeof(x)/sizeof(x[0]) and remove
duplicates of the macro.
Signed-off-by: Tobias Klauser <tklauser@nuerscht.ch>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/aic7xxx/aic79xx.h')
-rw-r--r-- | drivers/scsi/aic7xxx/aic79xx.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/aic7xxx/aic79xx.h b/drivers/scsi/aic7xxx/aic79xx.h index bb5166da4358..eb7745692682 100644 --- a/drivers/scsi/aic7xxx/aic79xx.h +++ b/drivers/scsi/aic7xxx/aic79xx.h | |||
@@ -68,8 +68,6 @@ struct scb_platform_data; | |||
68 | #define FALSE 0 | 68 | #define FALSE 0 |
69 | #endif | 69 | #endif |
70 | 70 | ||
71 | #define NUM_ELEMENTS(array) (sizeof(array) / sizeof(*array)) | ||
72 | |||
73 | #define ALL_CHANNELS '\0' | 71 | #define ALL_CHANNELS '\0' |
74 | #define ALL_TARGETS_MASK 0xFFFF | 72 | #define ALL_TARGETS_MASK 0xFFFF |
75 | #define INITIATOR_WILDCARD (~0) | 73 | #define INITIATOR_WILDCARD (~0) |