]> git.ipfire.org Git - thirdparty/mdadm.git/commit - Incremental.c
Incremental: Remove redundant call for GET_ARRAY_INFO
authorJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 29 Mar 2017 18:40:36 +0000 (14:40 -0400)
committerJes Sorensen <Jes.Sorensen@gmail.com>
Wed, 29 Mar 2017 18:40:36 +0000 (14:40 -0400)
commit5b13d2e1fb8abecddd4e28e67facac5d7ef2cef3
tree7724e4aaf2ec6d71f7696618a66dff199d83a9dc
parent9cd39f015558dba82c293a4433b481b921ceec87
Incremental: Remove redundant call for GET_ARRAY_INFO

The code above just called md_get_array_info() and only reached this
point if it returned an error that isn't ENODEV, so it's pointless to
check this again here.

In addition it was incorrectly retrieving ioctl data into a
mdu_bitmap_file_t instead of mdu_array_info_t.

Fixes: ("8382f19 Add new mode: --incremental")
Signed-off-by: Jes Sorensen <Jes.Sorensen@gmail.com>
Incremental.c