Remove NULL allocation checking since malloc() is allow to wait.
(I'll fix other places later..)
This commit is contained in:
parent
8c0a77e3d3
commit
7a5897d4d9
@ -67,8 +67,6 @@ snd_mtxcreate(const char *desc, const char *type)
|
||||
struct mtx *m;
|
||||
|
||||
m = malloc(sizeof(*m), M_DEVBUF, M_WAITOK | M_ZERO);
|
||||
if (m == NULL)
|
||||
return NULL;
|
||||
mtx_init(m, desc, type, MTX_DEF);
|
||||
return m;
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user