From 4d04af12a86b9853a5cb5c6a4c096c5efd1b3f50 Mon Sep 17 00:00:00 2001 From: mav Date: Sun, 2 Feb 2014 00:33:17 +0000 Subject: MFC r260883: Remove unneeded and dangerous assignment. It would probably cause NULL refererence panic if compiler not optimize it out. --- sys/geom/multipath/g_multipath.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sys/geom') 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)); -- cgit v1.1