diff options
author | mwilck@arcor.de <mwilck@arcor.de> | 2013-07-19 21:04:10 +0200 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2013-07-22 08:56:32 +0200 |
commit | 2aba583f287d9828360622637975e64f35d7337b (patch) | |
tree | c0623b61fef762b19ec9605fc025b469e182cb4a /super-ddf.c | |
parent | DDF: factor out writing super block to single disk (diff) | |
download | mdadm-2aba583f287d9828360622637975e64f35d7337b.tar.xz mdadm-2aba583f287d9828360622637975e64f35d7337b.zip |
DDF: err_bad_md_layout: fix return value
This function must use -1 to indicate failure. Fix it.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'super-ddf.c')
-rw-r--r-- | super-ddf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/super-ddf.c b/super-ddf.c index 8c6fa6d7..e23291f1 100644 --- a/super-ddf.c +++ b/super-ddf.c @@ -500,7 +500,7 @@ static int err_bad_md_layout(const mdu_array_info_t *array) { pr_err("RAID%d layout %x with %d disks is unsupported for DDF\n", array->level, array->layout, array->raid_disks); - return DDF_INVALID_LEVEL; + return -1; } static int layout_md2ddf(const mdu_array_info_t *array, |