Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pci Unindent code to match the logical structure, ig...



details:   https://anonhg.NetBSD.org/src/rev/89740cf33e2b
branches:  trunk
changeset: 1021405:89740cf33e2b
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun May 30 00:17:20 2021 +0000

description:
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.

diffstat:

 sys/dev/pci/if_cas.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 896400abc476 -r 89740cf33e2b sys/dev/pci/if_cas.c
--- a/sys/dev/pci/if_cas.c      Sun May 30 00:12:31 2021 +0000
+++ b/sys/dev/pci/if_cas.c      Sun May 30 00:17:20 2021 +0000
@@ -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*/



Home | Main Index | Thread Index | Old Index