MFC r260883:

Remove unneeded and dangerous assignment.  It would probably cause NULL
refererence panic if compiler not optimize it out.
This commit is contained in:
mav 2014-02-02 00:33:17 +00:00
parent 96d8492738
commit 4d04af12a8

View File

@ -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));