Fix LINT building.
authorSascha Wildner <saw@online.de>
Tue, 4 Dec 2012 19:37:30 +0000 (20:37 +0100)
committerSascha Wildner <saw@online.de>
Tue, 4 Dec 2012 19:37:30 +0000 (20:37 +0100)
sys/dev/agp/agppriv.h
sys/dev/netif/ath/ath/if_ath.c

index 669597a..f5fe42f 100644 (file)
@@ -24,7 +24,6 @@
  * SUCH DAMAGE.
  *
  *     $FreeBSD: src/sys/dev/agp/agppriv.h,v 1.8 2007/11/12 21:51:37 jhb Exp $
- *     $DragonFly: src/sys/dev/agp/agppriv.h,v 1.8 2008/01/07 01:34:58 corecode Exp $
  */
 
 #ifndef _PCI_AGPPRIV_H_
@@ -40,9 +39,8 @@
 #define AGP_DEBUGxx
 
 #ifdef AGP_DEBUG
-#define AGP_DPF(x...) do {                     \
-    printf("agp: ");                           \
-    printf(##x);                               \
+#define AGP_DPF(fmt, ...) do {                         \
+    kprintf("agp: " fmt, ##__VA_ARGS__);               \
 } while (0)
 #else
 #define AGP_DPF(x...) do {} while (0)
index 8449fae..023fdc6 100644 (file)
@@ -3402,8 +3402,6 @@ ath_descdma_setup(struct ath_softc *sc,
                STAILQ_INSERT_TAIL(head, bf, bf_list);
        }
        return 0;
-fail3:
-       bus_dmamap_unload(dd->dd_dmat, dd->dd_dmamap);
 fail2:
        bus_dmamem_free(dd->dd_dmat, dd->dd_desc, dd->dd_dmamap);
 fail1: