Delete copypasta

Reported by:	rpokala
MFC after:	20 days
X-MFC-With:	329845
Sponsored by:	Spectra Logic Corp
This commit is contained in:
Alan Somers 2018-02-23 17:20:53 +00:00
parent 2fae26bd8b
commit 93b9f3b114
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329872

View File

@ -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);
}