summaryrefslogtreecommitdiffstats
path: root/sys/geom
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-02-02 00:33:17 +0000
committermav <mav@FreeBSD.org>2014-02-02 00:33:17 +0000
commit4d04af12a86b9853a5cb5c6a4c096c5efd1b3f50 (patch)
tree22ac9857751b3ffca39b62fbefdc75c39873e55d /sys/geom
parent96d8492738d3d1cd8d41b0d8d81a174dcc07cc8d (diff)
downloadFreeBSD-src-4d04af12a86b9853a5cb5c6a4c096c5efd1b3f50.zip
FreeBSD-src-4d04af12a86b9853a5cb5c6a4c096c5efd1b3f50.tar.gz
MFC r260883:
Remove unneeded and dangerous assignment. It would probably cause NULL refererence panic if compiler not optimize it out.
Diffstat (limited to 'sys/geom')
-rw-r--r--sys/geom/multipath/g_multipath.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/geom/multipath/g_multipath.c b/sys/geom/multipath/g_multipath.c
index 88e65f8..7593cca 100644
--- a/sys/geom/multipath/g_multipath.c
+++ b/sys/geom/multipath/g_multipath.c
@@ -1089,7 +1089,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));
OpenPOWER on IntegriCloud