diff options
author | 2007-12-10 21:54:51 +0000 | |
---|---|---|
committer | 2007-12-10 21:54:51 +0000 | |
commit | a05c30126f7b95a529cd30ae042df36c5840cf71 (patch) | |
tree | 82028378190a9d157af78062a5b732309d886113 | |
parent | Make the "can't find VGA config space" error sound less scary. This (diff) | |
download | wireguard-openbsd-a05c30126f7b95a529cd30ae042df36c5840cf71.tar.xz wireguard-openbsd-a05c30126f7b95a529cd30ae042df36c5840cf71.zip |
Kill a check for malloc fail. The malloc call uses M_WAITOK and thus
should not be able to fail.
ok kettenis@.
-rw-r--r-- | sys/dev/pci/agp_i810.c | 4 |
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; |