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:
parent
f6b84910bb
commit
eaed60f737
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user