Use DDF_NOTFOUND instead of NO_SUCH_REFNUM. Signed-off-by: Martin Wilck <mwilck@xxxxxxxx> --- super-ddf.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/super-ddf.c b/super-ddf.c index 56aad68..91feb87 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -3257,7 +3257,6 @@ static int check_secondary(const struct vcl *vc) return 0; } -#define NO_SUCH_REFNUM (0xFFFFFFFF) static unsigned int get_pd_index_from_refnum(const struct vcl *vc, __u32 refnum, unsigned int nmax, const struct vd_config **bvd, @@ -3298,7 +3297,7 @@ static unsigned int get_pd_index_from_refnum(const struct vcl *vc, } bad: *bvd = NULL; - return NO_SUCH_REFNUM; + return DDF_NOTFOUND; } static struct mdinfo *container_content_ddf(struct supertype *st, char *subarray) @@ -3414,7 +3413,7 @@ static struct mdinfo *container_content_ddf(struct supertype *st, char *subarray i = get_pd_index_from_refnum( vc, ddf->phys->entries[pd].refnum, ddf->mppe, &bvd, &iphys); - if (i == NO_SUCH_REFNUM) + if (i == DDF_NOTFOUND) continue; this->array.working_disks++; -- 1.7.1 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html