Author: asomers
Date: Fri Feb 23 17:20:53 2018
New Revision: 329872
URL: https://svnweb.freebsd.org/changeset/base/329872

Log:
  Delete copypasta
  
  Reported by:  rpokala
  MFC after:    20 days
  X-MFC-With:   329845
  Sponsored by: Spectra Logic Corp

Modified:
  head/usr.sbin/mptutil/mpt_config.c

Modified: head/usr.sbin/mptutil/mpt_config.c
==============================================================================
--- head/usr.sbin/mptutil/mpt_config.c  Fri Feb 23 16:51:20 2018        
(r329871)
+++ head/usr.sbin/mptutil/mpt_config.c  Fri Feb 23 17:20:53 2018        
(r329872)
@@ -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,14 +970,12 @@ 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);
                }
@@ -986,7 +983,6 @@ add_spare(int ac, char **av)
                if (mpt_create_physdisk(fd, &sdisks[i], &PhysDiskNum) < 0) {
                        error = errno;
                        warn("Failed to create physical disk page");
-                       mpt_free_pd_list(list);
                        mpt_free_pd_list(list);
                        close(fd);
                        return (error);
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to