fstyp hammer2: remove dead code
best_i will always be >= 0, so remove code to test otherwise. Reported by: Coverity CID: 1412244 MFC after: 2 weeks Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D23159
This commit is contained in:
parent
0ab52bd3eb
commit
5a12815327
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356709
@ -87,11 +87,6 @@ __read_label(FILE *fp, char *label, size_t size)
|
||||
best = broot;
|
||||
}
|
||||
}
|
||||
if (best_i == -1) {
|
||||
warnx("Failed to find volume header from zones");
|
||||
error = 1;
|
||||
goto done;
|
||||
}
|
||||
|
||||
bref = &vols[best_i]->voldata.sroot_blockset.blockref[0];
|
||||
if (bref->type != HAMMER2_BREF_TYPE_INODE) {
|
||||
|
Loading…
Reference in New Issue
Block a user