From 0e4a9d03df0a7ba516bbd94d2ec17d26859e46ba Mon Sep 17 00:00:00 2001 From: Kulikov Vasiliy Date: Mon, 28 Jun 2010 15:54:44 +0400 Subject: block: cciss: use ARRAY_SIZE Change sizeof(x) / sizeof(*x) to ARRAY_SIZE(x). Signed-off-by: Kulikov Vasiliy Acked-by: Mike Miller Signed-off-by: Jiri Kosina --- drivers/block/cciss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/block') 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 -- cgit v1.2.3-58-ga151