From a35b5f81a4aeb6ee0ef3d19fc1d6f86d70ceaf99 Mon Sep 17 00:00:00 2001 From: joerg Date: Fri, 23 Nov 2007 19:47:27 +0000 Subject: [PATCH] If memory for the firmware image couldn't be allocated, print only one error message. --- sys/dev/pci/if_wpi.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/sys/dev/pci/if_wpi.c b/sys/dev/pci/if_wpi.c index 281b33fd0637..7293e9430ab5 100644 --- a/sys/dev/pci/if_wpi.c +++ b/sys/dev/pci/if_wpi.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_wpi.c,v 1.28 2007/11/16 00:13:32 degroote Exp $ */ +/* $NetBSD: if_wpi.c,v 1.29 2007/11/23 19:47:27 joerg Exp $ */ /*- * Copyright (c) 2006, 2007 @@ -18,7 +18,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.28 2007/11/16 00:13:32 degroote Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_wpi.c,v 1.29 2007/11/23 19:47:27 joerg Exp $"); /* * Driver for Intel PRO/Wireless 3945ABG 802.11 network adapters. @@ -257,10 +257,8 @@ wpi_attach(device_t parent __unused, device_t self, void *aux) /* * Allocate DMA memory for firmware transfers. */ - if ((error = wpi_alloc_fwmem(sc)) != 0) { - aprint_error("could not allocate firmware memory\n"); + if ((error = wpi_alloc_fwmem(sc)) != 0) return; - } /* * Allocate shared page and Tx/Rx rings.