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
This commit is contained in:
Alexander Motin 2014-01-19 16:37:57 +00:00
parent f6b84910bb
commit eaed60f737
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=260883

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