There's no need for checking result of M_WAITOK allocation.
This commit is contained in:
parent
c16ce31b31
commit
07a93e6b3c
@ -295,10 +295,6 @@ g_multipath_create(struct g_class *mp, struct g_multipath_metadata *md)
|
||||
}
|
||||
|
||||
sc = g_malloc(sizeof(*sc), M_WAITOK | M_ZERO);
|
||||
if (sc == NULL) {
|
||||
goto fail;
|
||||
}
|
||||
|
||||
gp->softc = sc;
|
||||
gp->start = g_multipath_start;
|
||||
gp->orphan = g_multipath_orphan;
|
||||
|
Loading…
Reference in New Issue
Block a user