From dfd2537b1725fcb5af1793c00c855f2910c40ef5 Mon Sep 17 00:00:00 2001 From: mav Date: Sun, 2 Feb 2014 00:34:32 +0000 Subject: [PATCH] MFC r260883: Remove unneeded and dangerous assignment. It would probably cause NULL refererence panic if compiler not optimize it out. git-svn-id: svn://svn.freebsd.org/base/stable/9@261392 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- sys/geom/multipath/g_multipath.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c index 72cd2c5bb..21084ea4d 100644 --- a/sys/geom/multipath/g_multipath.c +++ b/sys/geom/multipath/g_multipath.c @@ -984,7 +984,6 @@ g_multipath_ctl_create(struct gctl_req *req, struct g_class *mp) 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)); -- 2.45.0