svn commit: r335582 - head/sys/arm/allwinner

Emmanuel Vadot manu at FreeBSD.org
Sat Jun 23 15:05:23 UTC 2018


Author: manu
Date: Sat Jun 23 15:05:21 2018
New Revision: 335582
URL: https://svnweb.freebsd.org/changeset/base/335582

Log:
  aw_mmc: Fix style(9) after r335476

Modified:
  head/sys/arm/allwinner/aw_mmc.c

Modified: head/sys/arm/allwinner/aw_mmc.c
==============================================================================
--- head/sys/arm/allwinner/aw_mmc.c	Sat Jun 23 15:03:54 2018	(r335581)
+++ head/sys/arm/allwinner/aw_mmc.c	Sat Jun 23 15:05:21 2018	(r335582)
@@ -529,21 +529,21 @@ aw_mmc_attach(device_t dev)
 	    &sc->sim_mtx, 1, 1, sc->devq);
 
 	if (sc->sim == NULL) {
-                cam_simq_free(sc->devq);
-                device_printf(dev, "cannot allocate CAM SIM\n");
-                goto fail;
-        }
+		cam_simq_free(sc->devq);
+		device_printf(dev, "cannot allocate CAM SIM\n");
+		goto fail;
+	}
 
 	mtx_lock(&sc->sim_mtx);
-        if (xpt_bus_register(sc->sim, sc->aw_dev, 0) != 0) {
-                device_printf(dev, "cannot register SCSI pass-through bus\n");
-                cam_sim_free(sc->sim, FALSE);
-                cam_simq_free(sc->devq);
-                mtx_unlock(&sc->sim_mtx);
-                goto fail;
-        }
+	if (xpt_bus_register(sc->sim, sc->aw_dev, 0) != 0) {
+		device_printf(dev, "cannot register SCSI pass-through bus\n");
+		cam_sim_free(sc->sim, FALSE);
+		cam_simq_free(sc->devq);
+		mtx_unlock(&sc->sim_mtx);
+		goto fail;
+	}
 
-        mtx_unlock(&sc->sim_mtx);
+	mtx_unlock(&sc->sim_mtx);
 #else /* !MMCCAM */
 	child = device_add_child(dev, "mmc", -1);
 	if (child == NULL) {
@@ -566,14 +566,14 @@ fail:
 
 #ifdef MMCCAM
 	if (sc->sim != NULL) {
-                mtx_lock(&sc->sim_mtx);
-                xpt_bus_deregister(cam_sim_path(sc->sim));
-                cam_sim_free(sc->sim, FALSE);
-                mtx_unlock(&sc->sim_mtx);
-        }
+		mtx_lock(&sc->sim_mtx);
+		xpt_bus_deregister(cam_sim_path(sc->sim));
+		cam_sim_free(sc->sim, FALSE);
+		mtx_unlock(&sc->sim_mtx);
+	}
 
-        if (sc->devq != NULL)
-                cam_simq_free(sc->devq);
+	if (sc->devq != NULL)
+		cam_simq_free(sc->devq);
 #endif
 	return (ENXIO);
 }


More information about the svn-src-head mailing list