From eaed60f737422bfb5be7eb66131251cd68804be6 Mon Sep 17 00:00:00 2001 From: Alexander Motin Date: Sun, 19 Jan 2014 16:37:57 +0000 Subject: [PATCH] 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 --- 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 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));