Remove redundant check.
MFC after: 1 week
This commit is contained in:
parent
0827d66d68
commit
73f08c7ac5
@ -176,8 +176,7 @@ g_nop_create(struct gctl_req *req, struct g_class *mp, struct g_provider *pp,
|
||||
gctl_error(req, "Invalid secsize for provider %s.", pp->name);
|
||||
return (EINVAL);
|
||||
}
|
||||
if (size % secsize != 0)
|
||||
size -= size % secsize;
|
||||
size -= size % secsize;
|
||||
snprintf(name, sizeof(name), "%s%s", pp->name, G_NOP_SUFFIX);
|
||||
LIST_FOREACH(gp, &mp->geom, geom) {
|
||||
if (strcmp(gp->name, name) == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user