diff options
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -1471,7 +1471,7 @@ int is_subarray_active(char *subarray, char *container) if (is_container_member(ent, container)) { char *inst = &ent->metadata_version[10+strlen(container)+1]; - if (!subarray || strcmp(inst, subarray) == 0) + if (strcmp(inst, subarray) == 0) break; } } @@ -1481,11 +1481,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: supertype with only ->subarray set |