diff options
author | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-04-15 11:49:38 +0000 |
---|---|---|
committer | Pedro Martelletto <pedro@cvs.openbsd.org> | 2005-04-15 11:49:38 +0000 |
commit | 7cdd4757b30cb2021c016a9ed948d05600a41818 (patch) | |
tree | 2386108379f22382abae2cb37e38703f502009a9 /sys/isofs | |
parent | 1dd62c62c0737b023d2921ba3ac1f4ba4834bce6 (diff) |
don't need to check for NULL when using M_WAITOK, from mpech@
Diffstat (limited to 'sys/isofs')
-rw-r--r-- | sys/isofs/udf/udf_vnops.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/isofs/udf/udf_vnops.c b/sys/isofs/udf/udf_vnops.c index e20e8755503..084588d5313 100644 --- a/sys/isofs/udf/udf_vnops.c +++ b/sys/isofs/udf/udf_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udf_vnops.c,v 1.5 2005/04/05 14:06:52 pedro Exp $ */ +/* $OpenBSD: udf_vnops.c,v 1.6 2005/04/15 11:49:37 pedro Exp $ */ /* * Copyright (c) 2001, 2002 Scott Long <scottl@freebsd.org> @@ -750,8 +750,6 @@ udf_readdir(void *v) ncookies = uio->uio_resid / 8; MALLOC(cookies, u_long *, sizeof(u_long) * ncookies, M_TEMP, M_WAITOK); - if (cookies == NULL) - return (ENOMEM); uiodir.ncookies = ncookies; uiodir.cookies = cookies; uiodir.acookies = 0; |