diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2008-05-08 15:22:03 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2008-05-08 15:22:03 +0000 |
commit | e559e06f550eb2d3bacb277d58b1e3004ced232c (patch) | |
tree | b37708b8ba08d19bb08f0c13bba27789357995b8 /sys/altq/altq_cdnr.c | |
parent | 3c0c2d805016b41bbe5e0711ab423a2a97572a9f (diff) |
do not check malloc return value against NULL, as M_WAITOK is used
ok kjc@
Diffstat (limited to 'sys/altq/altq_cdnr.c')
-rw-r--r-- | sys/altq/altq_cdnr.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/altq/altq_cdnr.c b/sys/altq/altq_cdnr.c index e4455ae646d..2bf83f7c474 100644 --- a/sys/altq/altq_cdnr.c +++ b/sys/altq/altq_cdnr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: altq_cdnr.c,v 1.9 2008/04/20 07:05:51 deraadt Exp $ */ +/* $OpenBSD: altq_cdnr.c,v 1.10 2008/05/08 15:22:02 chl Exp $ */ /* $KAME: altq_cdnr.c,v 1.8 2000/12/14 08:12:45 thorpej Exp $ */ /* @@ -285,8 +285,6 @@ cdnr_cballoc(top, type, input_func) } cb = malloc(size, M_DEVBUF, M_WAITOK|M_ZERO); - if (cb == NULL) - return (NULL); cb->cb_len = size; cb->cb_type = type; |