Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 Feb 2014 00:33:18 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r261391 - stable/10/sys/geom/multipath
Message-ID:  <201402020033.s120XICo052629@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Feb  2 00:33:17 2014
New Revision: 261391
URL: http://svnweb.freebsd.org/changeset/base/261391

Log:
  MFC r260883:
  Remove unneeded and dangerous assignment.  It would probably cause NULL
  refererence panic if compiler not optimize it out.

Modified:
  stable/10/sys/geom/multipath/g_multipath.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/geom/multipath/g_multipath.c
==============================================================================
--- stable/10/sys/geom/multipath/g_multipath.c	Sun Feb  2 00:30:29 2014	(r261390)
+++ stable/10/sys/geom/multipath/g_multipath.c	Sun Feb  2 00:33:17 2014	(r261391)
@@ -1089,7 +1089,6 @@ g_multipath_ctl_create(struct gctl_req *
 		gctl_error(req, "Device %s already exist", mpname);
 		return;
 	}
-	sc = gp->softc;
 
 	memset(&md, 0, sizeof(md));
 	strlcpy(md.md_magic, G_MULTIPATH_MAGIC, sizeof(md.md_magic));



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