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
@ -961,7 +961,6 @@ add_spare(int ac, char **av)
|
||||
if (error != 0) {
|
||||
warn("Failed to fetch standalone disk list");
|
||||
mpt_free_pd_list(list);
|
||||
mpt_free_pd_list(list);
|
||||
close(fd);
|
||||
return (error);
|
||||
}
|
||||
@ -971,13 +970,11 @@ add_spare(int ac, char **av)
|
||||
error = errno;
|
||||
warn("Unable to lookup drive %s", av[1]);
|
||||
mpt_free_pd_list(list);
|
||||
mpt_free_pd_list(list);
|
||||
close(fd);
|
||||
return (error);
|
||||
}
|
||||
|
||||
if (mpt_lock_physdisk(&sdisks[i]) < 0) {
|
||||
mpt_free_pd_list(list);
|
||||
mpt_free_pd_list(list);
|
||||
close(fd);
|
||||
return (errno);
|
||||
@ -987,7 +984,6 @@ add_spare(int ac, char **av)
|
||||
error = errno;
|
||||
warn("Failed to create physical disk page");
|
||||
mpt_free_pd_list(list);
|
||||
mpt_free_pd_list(list);
|
||||
close(fd);
|
||||
return (error);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user