Sun May 30 00:17:20 2021 UTC ()
Unindent code to match the logical structure, ignoring the commented out if.

This code should be rewritten to use BUS_DMA_WAITOK, but that's a
project of its own.


(joerg)
diff -r1.45 -r1.46 src/sys/dev/pci/if_cas.c

cvs diff -r1.45 -r1.46 src/sys/dev/pci/if_cas.c (expand / switch to context diff)
--- src/sys/dev/pci/if_cas.c 2021/05/08 00:27:02 1.45
+++ src/sys/dev/pci/if_cas.c 2021/05/30 00:17:20 1.46
@@ -1,4 +1,4 @@
-/*	$NetBSD: if_cas.c,v 1.45 2021/05/08 00:27:02 thorpej Exp $	*/
+/*	$NetBSD: if_cas.c,v 1.46 2021/05/30 00:17:20 joerg Exp $	*/
 /*	$OpenBSD: if_cas.c,v 1.29 2009/11/29 16:19:38 kettenis Exp $	*/
 
 /*
@@ -44,7 +44,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.45 2021/05/08 00:27:02 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_cas.c,v 1.46 2021/05/30 00:17:20 joerg Exp $");
 
 #ifndef _MODULE
 #include "opt_inet.h"
@@ -783,8 +783,8 @@
 			/* XXX   need to check that bus_dmamem_alloc suceeded
 			if (sc->sc_rxsoft[i].rxs_dmaseg != NULL)
 			*/
-				bus_dmamem_free(sc->sc_dmatag,
-				    &(sc->sc_rxsoft[i].rxs_dmaseg), 1);
+			bus_dmamem_free(sc->sc_dmatag,
+			    &(sc->sc_rxsoft[i].rxs_dmaseg), 1);
 		}
 		bus_dmamap_unload(sc->sc_dmatag, sc->sc_cddmamap);
 		/*FALLTHROUGH*/