summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorOwain Ainsworth <oga@cvs.openbsd.org>2007-12-10 21:54:52 +0000
committerOwain Ainsworth <oga@cvs.openbsd.org>2007-12-10 21:54:52 +0000
commit484d34458924798509976e608a0a94b036f7b85f (patch)
treef265c46a3d29452bb4c48c8a1e3ebe3c8d3531c0 /sys/dev
parentd8eafaf5b4cf4462d4adbd2251836d925a392679 (diff)
Kill a check for malloc fail. The malloc call uses M_WAITOK and thus
should not be able to fail. ok kettenis@.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/agp_i810.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c
index 4134a2b1068..31ec9147ed4 100644
--- a/sys/dev/pci/agp_i810.c
+++ b/sys/dev/pci/agp_i810.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agp_i810.c,v 1.29 2007/12/10 21:51:01 oga Exp $ */
+/* $OpenBSD: agp_i810.c,v 1.30 2007/12/10 21:54:51 oga Exp $ */
/* $NetBSD: agp_i810.c,v 1.15 2003/01/31 00:07:39 thorpej Exp $ */
/*-
@@ -692,8 +692,6 @@ agp_i810_alloc_memory(struct agp_softc *sc, int type, vsize_t size)
}
mem = malloc(sizeof *mem, M_AGP, M_WAITOK | M_ZERO);
- if (mem == NULL)
- return (NULL);
mem->am_id = sc->sc_nextid++;
mem->am_size = size;
mem->am_type = type;