Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/cardbus move notyet variable into notyet section



details:   https://anonhg.NetBSD.org/src/rev/db5b0b0e4f80
branches:  trunk
changeset: 790589:db5b0b0e4f80
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Oct 17 21:22:28 2013 +0000

description:
move notyet variable into notyet section

diffstat:

 sys/dev/cardbus/if_rtw_cardbus.c |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (38 lines):

diff -r ffc6e66e5b6e -r db5b0b0e4f80 sys/dev/cardbus/if_rtw_cardbus.c
--- a/sys/dev/cardbus/if_rtw_cardbus.c  Thu Oct 17 21:22:01 2013 +0000
+++ b/sys/dev/cardbus/if_rtw_cardbus.c  Thu Oct 17 21:22:28 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_rtw_cardbus.c,v 1.42 2011/08/01 11:20:27 drochner Exp $ */
+/* $NetBSD: if_rtw_cardbus.c,v 1.43 2013/10/17 21:22:28 christos Exp $ */
 
 /*-
  * Copyright (c) 2004, 2005 David Young.  All rights reserved.
@@ -64,7 +64,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_rtw_cardbus.c,v 1.42 2011/08/01 11:20:27 drochner Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_rtw_cardbus.c,v 1.43 2013/10/17 21:22:28 christos Exp $");
 
 #include "opt_inet.h"
 
@@ -203,7 +203,6 @@
        cardbus_devfunc_t ct = ca->ca_ct;
        const struct rtw_cardbus_product *rcp;
        bus_addr_t adr;
-       int rev;
 
        sc->sc_dev = self;
        sc->sc_dmat = ca->ca_dmat;
@@ -216,8 +215,10 @@
                panic("rtw_cardbus_attach: impossible");
        }
 
+#ifdef notyet
        /* Get revision info. */
-       rev = PCI_REVISION(ca->ca_class);
+       int rev = PCI_REVISION(ca->ca_class);
+#endif
 
        printf(": %s\n", rcp->rcp_product_name);
 



Home | Main Index | Thread Index | Old Index