]> git.neil.brown.name Git - mdadm.git/commit
mdmon: don't test both 'all' and 'container_name'.
authorNeilBrown <neilb@suse.de>
Mon, 13 Mar 2023 03:42:58 +0000 (14:42 +1100)
committerJes Sorensen <jes@trained-monkey.org>
Sun, 19 Mar 2023 16:33:25 +0000 (12:33 -0400)
commitd39fd87e31024804dd7f2c16c03af0379b71f5f1
tree0b2b24796a294fc5dc9d7e4cafdf0ef60b08b6d6
parenteb45d0add7cf2918f838bec2d93d99cf2d9c662f
mdmon: don't test both 'all' and 'container_name'.

If 'all' is not set, then container_name must be NULL, as nothing else
can set it.  So simplify the test to ignore container_name.
This makes the purpose of the code more obvious.

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Jes Sorensen <jes@trained-monkey.org>
mdmon.c