Remove a line that set the status to success. We already do that at the

beginning, so the best this could achieve would be to mask an earlier
failure.  Break instead of continue for another failure case.
This commit is contained in:
John Baldwin 2002-11-12 21:12:42 +00:00
parent f193ff8342
commit e324564167
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=106828
2 changed files with 2 additions and 4 deletions

View File

@ -1393,7 +1393,6 @@ diskLabelNonInteractive(Device *dev)
tmp->private_data = new_part(mpoint, TRUE);
tmp->private_free = safe_free;
((PartInfo *)tmp->private_data)->soft = soft;
status = DITEM_SUCCESS;
}
}
}
@ -1408,7 +1407,7 @@ diskLabelNonInteractive(Device *dev)
if (sscanf(cp, "%s %s", mpoint, do_newfs) != 2) {
msgConfirm("For slice entry %s, got an invalid detail entry of: %s", c1->name, cp);
status = DITEM_FAILURE;
continue;
break;
}
newfs = toupper(do_newfs[0]) == 'Y' ? TRUE : FALSE;
if (c1->private_data) {

View File

@ -1393,7 +1393,6 @@ diskLabelNonInteractive(Device *dev)
tmp->private_data = new_part(mpoint, TRUE);
tmp->private_free = safe_free;
((PartInfo *)tmp->private_data)->soft = soft;
status = DITEM_SUCCESS;
}
}
}
@ -1408,7 +1407,7 @@ diskLabelNonInteractive(Device *dev)
if (sscanf(cp, "%s %s", mpoint, do_newfs) != 2) {
msgConfirm("For slice entry %s, got an invalid detail entry of: %s", c1->name, cp);
status = DITEM_FAILURE;
continue;
break;
}
newfs = toupper(do_newfs[0]) == 'Y' ? TRUE : FALSE;
if (c1->private_data) {