summaryrefslogtreecommitdiff
path: root/maps.c
diff options
context:
space:
mode:
authorArtur Paszkiewicz <artur.paszkiewicz@intel.com>2017-04-24 16:03:26 +0200
committerJes Sorensen <jsorensen@fb.com>2017-04-24 17:10:56 -0400
commitb75805662e7208799207a8e5f8a61f69a44888f0 (patch)
tree1578130c984cd37df66a60ba2dc2bc5bbc59208f /maps.c
parent4a4379b054a72b3c4abd93dd6e1283d6aa992ee2 (diff)
downloadmdadm-b75805662e7208799207a8e5f8a61f69a44888f0.tar.gz
Don't use UnSet with consistency_policy
Use CONSISTENCY_POLICY_UNKNOWN instead. Simplify some checks because since 5e8e35fb7e17 ("maps: Use keyvalue for null terminator to indicate 'unset' value") map_name() can return this default directly. Suggested-by: Jes Sorensen <Jes.Sorensen@gmail.com> Signed-off-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Diffstat (limited to 'maps.c')
-rw-r--r--maps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/maps.c b/maps.c
index bb28ba6..02a0474 100644
--- a/maps.c
+++ b/maps.c
@@ -137,7 +137,7 @@ mapping_t consistency_policies[] = {
{ "bitmap", CONSISTENCY_POLICY_BITMAP},
{ "journal", CONSISTENCY_POLICY_JOURNAL},
{ "ppl", CONSISTENCY_POLICY_PPL},
- { NULL, UnSet }
+ { NULL, CONSISTENCY_POLICY_UNKNOWN }
};
mapping_t sysfs_array_states[] = {