Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci kill stray free. from Sverre Froyen.



details:   https://anonhg.NetBSD.org/src/rev/d33edad057a4
branches:  trunk
changeset: 754349:d33edad057a4
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Apr 28 15:56:24 2010 +0000

description:
kill stray free. from Sverre Froyen.

diffstat:

 sys/dev/pci/if_iwn.c |  5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r c918227cdeee -r d33edad057a4 sys/dev/pci/if_iwn.c
--- a/sys/dev/pci/if_iwn.c      Wed Apr 28 14:51:07 2010 +0000
+++ b/sys/dev/pci/if_iwn.c      Wed Apr 28 15:56:24 2010 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_iwn.c,v 1.42 2010/04/23 20:56:20 christos Exp $     */
+/*     $NetBSD: if_iwn.c,v 1.43 2010/04/28 15:56:24 christos Exp $     */
 /*     $OpenBSD: if_iwn.c,v 1.88 2010/04/10 08:37:36 damien Exp $      */
 
 /*-
@@ -22,7 +22,7 @@
  * adapters.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.42 2010/04/23 20:56:20 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_iwn.c,v 1.43 2010/04/28 15:56:24 christos Exp $");
 
 #define IWN_USE_RBUF   /* Use local storage for RX */
 #undef IWN_HWCRYPTO    /* XXX does not even compile yet */
@@ -5619,7 +5619,6 @@
        if (IWN_FW_API(rev) <= 1) {
                aprint_error_dev(sc->sc_dev,
                    "bad firmware, need API version >=2\n");
-               firmware_free(fw->data, fw->datasz);
                goto out;
        }
        if (IWN_FW_API(rev) >= 3) {



Home | Main Index | Thread Index | Old Index