aboutsummaryrefslogtreecommitdiff
path: root/sys/geom
diff options
context:
space:
mode:
authorAlexander Motin <mav@FreeBSD.org>2014-01-19 16:37:57 +0000
committerAlexander Motin <mav@FreeBSD.org>2014-01-19 16:37:57 +0000
commiteaed60f737422bfb5be7eb66131251cd68804be6 (patch)
treec40d114ecc48f7afd5cd5ed8a9f3359f4061bb5f /sys/geom
parentf6b84910bbabbe59ac2ac5cc991afbc2cf4cce0e (diff)
downloadsrc-eaed60f737422bfb5be7eb66131251cd68804be6.tar.gz
src-eaed60f737422bfb5be7eb66131251cd68804be6.zip
Removed unneeded and dangerous assignment. It would probably cause NULL
refererence panic if compiler not optimize it out. Found with: Clang static analyzer MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=260883
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 88e65f8b2021..7593ccaa238a 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));