diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-06-28 11:54:44 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2010-07-20 15:02:03 (GMT) |
commit | 0e4a9d03df0a7ba516bbd94d2ec17d26859e46ba (patch) | |
tree | ab44dec4a39be6ee65e1e889c403ee9be7f0bd0e /drivers/block | |
parent | b770ffd4c453068392b16fda8afca548cd7ebe38 (diff) | |
download | linux-0e4a9d03df0a7ba516bbd94d2ec17d26859e46ba.tar.xz |
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>
Diffstat (limited to 'drivers/block')
-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 51ceaee..e1e7143 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 |