From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> devname is always NULL, hence if () statement will always fail. Signed-off-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx> --- config.c | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/config.c b/config.c index c0a6baa..b57ba50 100644 --- a/config.c +++ b/config.c @@ -1023,7 +1023,6 @@ struct mddev_ident *conf_match(struct mdinfo *info, struct supertype *st) { struct mddev_ident *array_list, *match; int verbose = 0; - char *devname = NULL; array_list = conf_get_ident(NULL); match = NULL; for (; array_list; array_list = array_list->next) { @@ -1044,14 +1043,6 @@ struct mddev_ident *conf_match(struct mdinfo *info, struct supertype *st) array_list->devname); continue; } - if (array_list->devices && devname && - !match_oneof(array_list->devices, devname)) { - if (verbose >= 2 && array_list->devname) - fprintf(stderr, Name - ": Not a listed device for %s.\n", - array_list->devname); - continue; - } if (array_list->super_minor != UnSet && array_list->super_minor != info->array.md_minor) { if (verbose >= 2 && array_list->devname) -- 1.7.6.4 -- 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