git: f94066c8aa35 - main - Fix "set but not used" in aic7xxx/aic79xx. The variables were dead code.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 26 Feb 2022 17:34:12 UTC
The branch main has been updated by scottl: URL: https://cgit.FreeBSD.org/src/commit/?id=f94066c8aa35a27b00a9a6a132fcdcad9959177b commit f94066c8aa35a27b00a9a6a132fcdcad9959177b Author: Scott Long <scottl@FreeBSD.org> AuthorDate: 2022-02-26 17:33:31 +0000 Commit: Scott Long <scottl@FreeBSD.org> CommitDate: 2022-02-26 17:33:31 +0000 Fix "set but not used" in aic7xxx/aic79xx. The variables were dead code. --- sys/dev/aic7xxx/aic79xx.c | 9 --------- sys/dev/aic7xxx/aic7xxx.c | 6 ------ 2 files changed, 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