summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorariff <ariff@FreeBSD.org>2007-03-15 15:06:54 +0000
committerariff <ariff@FreeBSD.org>2007-03-15 15:06:54 +0000
commite384ffc370ce3185a1575f148f487dbaad04de2c (patch)
tree3ad0d2aa630db79b24201197ebde8886f7f1d490
parent1acd59dccc72cbf4b0381a199232feb74e807426 (diff)
downloadFreeBSD-src-e384ffc370ce3185a1575f148f487dbaad04de2c.zip
FreeBSD-src-e384ffc370ce3185a1575f148f487dbaad04de2c.tar.gz
Remove NULL allocation checking since malloc() is allow to wait.
(I'll fix other places later..)
-rw-r--r--sys/dev/sound/pcm/sound.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/dev/sound/pcm/sound.c b/sys/dev/sound/pcm/sound.c
index 5e54ee8..9b65d9d 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
OpenPOWER on IntegriCloud