]> git.ipfire.org Git - thirdparty/mdadm.git/commit
Fix some issues found by clang
authorNeilBrown <neilb@suse.com>
Fri, 7 Oct 2016 03:55:20 +0000 (14:55 +1100)
committerJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 7 Oct 2016 15:47:48 +0000 (11:47 -0400)
commit681b7ae245db80b24d45abdc3f5040c796aa29cc
tree5d6187f9ed6b2eec1d2cfdae26a9a6fb7639b455
parent21e9380b26058762a0d3cb0957c5808736d21996
Fix some issues found by clang

The clang compiler complained about each of these.

The mdmon.h error will only affect 'far' RAID10 arrays using intel or DDF
metadata, and there is no such thing.

The mdopen.c will cause a problem if there are no free md device
numbers in the first 512.  That is fairly unlikely.

The restripe.c error would only affect the 'test_stripe' command, and
probably doesn't change its behaviour.

The super-intel.c fix is purely cosmetic.

Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
mdmon.h
mdopen.c
restripe.c
super-intel.c