diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-06-28 15:54:44 +0400 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-07-20 17:02:03 +0200 |
commit | 0e4a9d03df0a7ba516bbd94d2ec17d26859e46ba (patch) | |
tree | ab44dec4a39be6ee65e1e889c403ee9be7f0bd0e | |
parent | b770ffd4c453068392b16fda8afca548cd7ebe38 (diff) | |
download | lwn-0e4a9d03df0a7ba516bbd94d2ec17d26859e46ba.tar.gz lwn-0e4a9d03df0a7ba516bbd94d2ec17d26859e46ba.zip |
block: cciss: use ARRAY_SIZE
Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x).
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: Mike Miller <mike.miller@hp.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r-- | drivers/block/cciss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c index 51ceaee98f9f..e1e7143ca1e3 100644 --- a/drivers/block/cciss.c +++ b/drivers/block/cciss.c @@ -335,7 +335,7 @@ static void cciss_map_sg_chain_block(ctlr_info_t *h, CommandList_struct *c, static const char *raid_label[] = { "0", "4", "1(1+0)", "5", "5+1", "ADG", "UNKNOWN" }; -#define RAID_UNKNOWN (sizeof(raid_label) / sizeof(raid_label[0])-1) +#define RAID_UNKNOWN (ARRAY_SIZE(raid_label)-1) #ifdef CONFIG_PROC_FS |