svn commit: r261391 - stable/10/sys/geom/multipath

Alexander Motin mav at FreeBSD.org
Sun Feb 2 00:33:18 UTC 2014


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


More information about the svn-src-stable-10 mailing list