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>
This commit is contained in:
parent
b770ffd4c4
commit
0e4a9d03df
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue