From 626bfed6f604e9e540b74de449886e4557767d30 Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Wed, 9 Dec 1998 01:27:29 +0000 Subject: [PATCH] Bailing out when malloc returns != NULL will not help anybody. --- sys/pci/pci_compat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/pci/pci_compat.c b/sys/pci/pci_compat.c index 5d5bc5bd41fc..42bed11afc76 100644 --- a/sys/pci/pci_compat.c +++ b/sys/pci/pci_compat.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pci_compat.c,v 1.14 1998/12/04 22:54:56 archie Exp $ + * $Id: pci_compat.c,v 1.15 1998/12/07 21:58:48 archie Exp $ * */ @@ -451,7 +451,7 @@ int pci_register_lkm (struct pci_device *dvp, int if_revision) return (-1); } lkm = malloc (sizeof (*lkm), M_DEVBUF, M_WAITOK); - if (lkm != NULL) { + if (lkm == NULL) { return (-1); }