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:
parent
96d8492738
commit
4d04af12a8
@ -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…
Reference in New Issue
Block a user