diff options
Diffstat (limited to '')
-rw-r--r-- | util.c | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1490,8 +1490,7 @@ int is_subarray_active(char *subarray, char *container) for (ent = mdstat; ent; ent = ent->next) if (is_container_member(ent, container)) - if (!subarray || - strcmp(to_subarray(ent, container), subarray) == 0) + if (strcmp(to_subarray(ent, container), subarray) == 0) break; free_mdstat(mdstat); @@ -1499,11 +1498,6 @@ int is_subarray_active(char *subarray, char *container) return ent != NULL; } -int is_container_active(char *container) -{ - return is_subarray_active(NULL, container); -} - /* open_subarray - opens a subarray in a container * @dev: container device name * @st: empty supertype |