mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
Delete copypasta
Reported by: rpokala MFC after: 20 days X-MFC-With: 329845 Sponsored by: Spectra Logic Corp
This commit is contained in:
parent
2fae26bd8b
commit
93b9f3b114
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329872
|
@ -961,7 +961,6 @@ add_spare(int ac, char **av)
|
||||||
if (error != 0) {
|
if (error != 0) {
|
||||||
warn("Failed to fetch standalone disk list");
|
warn("Failed to fetch standalone disk list");
|
||||||
mpt_free_pd_list(list);
|
mpt_free_pd_list(list);
|
||||||
mpt_free_pd_list(list);
|
|
||||||
close(fd);
|
close(fd);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
@ -971,13 +970,11 @@ add_spare(int ac, char **av)
|
||||||
error = errno;
|
error = errno;
|
||||||
warn("Unable to lookup drive %s", av[1]);
|
warn("Unable to lookup drive %s", av[1]);
|
||||||
mpt_free_pd_list(list);
|
mpt_free_pd_list(list);
|
||||||
mpt_free_pd_list(list);
|
|
||||||
close(fd);
|
close(fd);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mpt_lock_physdisk(&sdisks[i]) < 0) {
|
if (mpt_lock_physdisk(&sdisks[i]) < 0) {
|
||||||
mpt_free_pd_list(list);
|
|
||||||
mpt_free_pd_list(list);
|
mpt_free_pd_list(list);
|
||||||
close(fd);
|
close(fd);
|
||||||
return (errno);
|
return (errno);
|
||||||
|
@ -987,7 +984,6 @@ add_spare(int ac, char **av)
|
||||||
error = errno;
|
error = errno;
|
||||||
warn("Failed to create physical disk page");
|
warn("Failed to create physical disk page");
|
||||||
mpt_free_pd_list(list);
|
mpt_free_pd_list(list);
|
||||||
mpt_free_pd_list(list);
|
|
||||||
close(fd);
|
close(fd);
|
||||||
return (error);
|
return (error);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue