From owner-svn-src-all@freebsd.org Fri Feb 23 17:20:54 2018 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 677FBF0966D; Fri, 23 Feb 2018 17:20:54 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E70626BBBB; Fri, 23 Feb 2018 17:20:53 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E1EBC19664; Fri, 23 Feb 2018 17:20:53 +0000 (UTC) (envelope-from asomers@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w1NHKr7O049947; Fri, 23 Feb 2018 17:20:53 GMT (envelope-from asomers@FreeBSD.org) Received: (from asomers@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w1NHKrCj049946; Fri, 23 Feb 2018 17:20:53 GMT (envelope-from asomers@FreeBSD.org) Message-Id: <201802231720.w1NHKrCj049946@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: asomers set sender to asomers@FreeBSD.org using -f From: Alan Somers Date: Fri, 23 Feb 2018 17:20:53 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329872 - head/usr.sbin/mptutil X-SVN-Group: head X-SVN-Commit-Author: asomers X-SVN-Commit-Paths: head/usr.sbin/mptutil X-SVN-Commit-Revision: 329872 X-SVN-Commit-Repository: base MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Feb 2018 17:20:54 -0000 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);