summaryrefslogtreecommitdiff
path: root/super-ddf.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2013-09-10 09:48:06 +1000
committerNeilBrown <neilb@suse.de>2013-09-10 09:48:06 +1000
commit1c0aebc2bec4d8e7e575c4222600826de3f1b73e (patch)
tree360da02b6e65739a25e539e9e2259ac00642a657 /super-ddf.c
parent7087f02b90ef7b5817193d385b8d83148565bff9 (diff)
Move ARRAY_SIZE macro to common include file.
That was super-ddf can use it. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r--super-ddf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/super-ddf.c b/super-ddf.c
index f73a63fe..636d7b49 100644
--- a/super-ddf.c
+++ b/super-ddf.c
@@ -1680,8 +1680,7 @@ static const char *vendors_with_variable_volume_UUID[] = {
static int volume_id_is_reliable(const struct ddf_super *ddf)
{
- int n = sizeof(vendors_with_variable_volume_UUID) /
- sizeof(vendors_with_variable_volume_UUID[0]);
+ int n = ARRAY_SIZE(vendors_with_variable_volume_UUID);
int i;
for (i = 0; i < n; i++)
if (!memcmp(ddf->controller.guid,