From db4fa0ab7c41c024652532c9b6d1f864ff81c45c Mon Sep 17 00:00:00 2001 From: Sascha Wildner Date: Thu, 29 Jun 2017 21:34:53 +0200 Subject: [PATCH] kernel/hptrr: Oops, fix some whitespace. --- sys/dev/raid/hptrr/hptrr_osm_bsd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/raid/hptrr/hptrr_osm_bsd.c b/sys/dev/raid/hptrr/hptrr_osm_bsd.c index 77545f4fe8..4cd2e01750 100644 --- a/sys/dev/raid/hptrr/hptrr_osm_bsd.c +++ b/sys/dev/raid/hptrr/hptrr_osm_bsd.c @@ -510,7 +510,7 @@ static void hpt_io_dmamap_callback(void *arg, bus_dma_segment_t *segs, int nsegs panic("busdma error"); HPT_ASSERT(nsegs<=os_max_sg_descriptors); - + if (nsegs != 0) { for (idx = 0; idx < nsegs; idx++, psg++) { psg->addr.bus = segs[idx].ds_addr; @@ -518,7 +518,7 @@ static void hpt_io_dmamap_callback(void *arg, bus_dma_segment_t *segs, int nsegs psg->eot = 0; } psg[-1].eot = 1; - + if (pCmd->flags.data_in) { bus_dmamap_sync(ext->vbus_ext->io_dmat, ext->dma_map, BUS_DMASYNC_PREREAD); @@ -713,8 +713,8 @@ static void hpt_scsi_io(PVBUS_EXT vbus_ext, union ccb *ccb) pCmd->buildsgl = os_buildsgl; pCmd->psg = ext->psg; pCmd->flags.physical_sg = 1; - error = bus_dmamap_load_ccb(vbus_ext->io_dmat, - ext->dma_map, + error = bus_dmamap_load_ccb(vbus_ext->io_dmat, + ext->dma_map, ccb, hpt_io_dmamap_callback, pCmd, BUS_DMA_WAITOK -- 2.11.4.GIT