mdadm: fix wrong condition for go to abort

When parse_cluster_confirm_arg return 0, it means the
arg are parsed successfully, so change !rv to rv.

Signed-off-by: Guoqing Jiang <gqjiang@suse.com>
Signed-off-by: NeilBrown <neilb@suse.com>
This commit is contained in:
Guoqing Jiang 2015-07-06 16:52:10 +08:00 committed by NeilBrown
parent 9f2e55a421
commit d7a493695a
1 changed files with 1 additions and 1 deletions

View File

@ -1336,7 +1336,7 @@ int Manage_subdevs(char *devname, int fd,
rv = parse_cluster_confirm_arg(dv->devname,
&dv->devname,
&raid_slot);
if (!rv) {
if (rv) {
pr_err("Could not get the devname of cluster\n");
goto abort;
}