From 7a5897d4d933f9520350c6f723eeff1c106ee9a6 Mon Sep 17 00:00:00 2001 From: Ariff Abdullah Date: Thu, 15 Mar 2007 15:06:54 +0000 Subject: [PATCH] Remove NULL allocation checking since malloc() is allow to wait. (I'll fix other places later..) --- sys/dev/sound/pcm/sound.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c index 5e54ee813bf5..9b65d9d72323 100644 --- a/sys/dev/sound/pcm/sound.c +++ b/sys/dev/sound/pcm/sound.c @@ -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