Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 23 Feb 2018 17:20:53 +0000 (UTC)
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329872 - head/usr.sbin/mptutil
Message-ID:  <201802231720.w1NHKrCj049946@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802231720.w1NHKrCj049946>