diff options
| author | Scott Long <scottl@FreeBSD.org> | 2022-02-26 17:33:31 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2022-02-26 17:33:31 +0000 |
| commit | f94066c8aa35a27b00a9a6a132fcdcad9959177b (patch) | |
| tree | 75e54998a246c4db8b0bf671c123034b0cd96690 /sys/dev/aic7xxx | |
| parent | e28289ca83673d753b7e479810947f6a1015ad39 (diff) | |
Diffstat (limited to 'sys/dev/aic7xxx')
| -rw-r--r-- | sys/dev/aic7xxx/aic79xx.c | 9 | ||||
| -rw-r--r-- | sys/dev/aic7xxx/aic7xxx.c | 6 |
2 files changed, 0 insertions, 15 deletions
diff --git a/sys/dev/aic7xxx/aic79xx.c b/sys/dev/aic7xxx/aic79xx.c index db4f39d39e5e..c48b5301f12a 100644 --- a/sys/dev/aic7xxx/aic79xx.c +++ b/sys/dev/aic7xxx/aic79xx.c @@ -4887,7 +4887,6 @@ ahd_handle_ign_wide_residue(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) */ } else { uint32_t data_cnt; - uint64_t data_addr; uint32_t sglen; /* Pull in the rest of the sgptr */ @@ -4901,9 +4900,7 @@ ahd_handle_ign_wide_residue(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) */ data_cnt &= ~AHD_SG_LEN_MASK; } - data_addr = ahd_inq(ahd, SHADDR); data_cnt += 1; - data_addr -= 1; sgptr &= SG_PTR_MASK; if ((ahd->flags & AHD_64BIT_ADDRESSING) != 0) { struct ahd_dma64_seg *sg; @@ -4925,9 +4922,6 @@ ahd_handle_ign_wide_residue(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) * bits while setting the count to 1. */ data_cnt = 1|(sglen&(~AHD_SG_LEN_MASK)); - data_addr = aic_le64toh(sg->addr) - + (sglen & AHD_SG_LEN_MASK) - - 1; /* * Increment sg so it points to the @@ -4957,9 +4951,6 @@ ahd_handle_ign_wide_residue(struct ahd_softc *ahd, struct ahd_devinfo *devinfo) * bits while setting the count to 1. */ data_cnt = 1|(sglen&(~AHD_SG_LEN_MASK)); - data_addr = aic_le32toh(sg->addr) - + (sglen & AHD_SG_LEN_MASK) - - 1; /* * Increment sg so it points to the diff --git a/sys/dev/aic7xxx/aic7xxx.c b/sys/dev/aic7xxx/aic7xxx.c index 247507d80f7f..d76d17b4eac2 100644 --- a/sys/dev/aic7xxx/aic7xxx.c +++ b/sys/dev/aic7xxx/aic7xxx.c @@ -3674,7 +3674,6 @@ ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) } else { struct ahc_dma_seg *sg; uint32_t data_cnt; - uint32_t data_addr; uint32_t sglen; /* Pull in all of the sgptr */ @@ -3690,10 +3689,7 @@ ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) data_cnt &= ~AHC_SG_LEN_MASK; } - data_addr = ahc_inl(ahc, SHADDR); - data_cnt += 1; - data_addr -= 1; sgptr &= SG_PTR_MASK; sg = ahc_sg_bus_to_virt(scb, sgptr); @@ -3713,8 +3709,6 @@ ahc_handle_ign_wide_residue(struct ahc_softc *ahc, struct ahc_devinfo *devinfo) * while setting the count to 1. */ data_cnt = 1 | (sglen & (~AHC_SG_LEN_MASK)); - data_addr = aic_le32toh(sg->addr) - + (sglen & AHC_SG_LEN_MASK) - 1; /* * Increment sg so it points to the |
