summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-12-18 08:27:00 +0000
committermav <mav@FreeBSD.org>2014-12-18 08:27:00 +0000
commitf47cf8ca4224fbeae81a621a427a5dc693b1134f (patch)
treeef65c366a9f7b52d1d01ceee01b0e09a2e1f864f /sys/cam
parent08d09659c793969a91ede5dbdcaf5aa9bd17b994 (diff)
downloadFreeBSD-src-f47cf8ca4224fbeae81a621a427a5dc693b1134f.zip
FreeBSD-src-f47cf8ca4224fbeae81a621a427a5dc693b1134f.tar.gz
MFC r275403: Removed unused variable and unify some names.
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/ctl/ctl.c17
1 files changed, 7 insertions, 10 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c
index 5a8322c..76160f4 100644
--- a/sys/cam/ctl/ctl.c
+++ b/sys/cam/ctl/ctl.c
@@ -10970,7 +10970,6 @@ ctl_check_blocked(struct ctl_lun *lun)
case CTL_ACTION_SKIP: {
struct ctl_softc *softc;
const struct ctl_cmd_entry *entry;
- uint32_t initidx;
int isc_retval;
/*
@@ -11010,8 +11009,6 @@ ctl_check_blocked(struct ctl_lun *lun)
entry = ctl_get_cmd_entry(&cur_blocked->scsiio, NULL);
softc = control_softc;
- initidx = ctl_get_initindex(&cur_blocked->io_hdr.nexus);
-
/*
* Check this I/O for LUN state changes that may
* have happened while this command was blocked.
@@ -11848,7 +11845,7 @@ ctl_lun_reset(struct ctl_lun *lun, union ctl_io *io, ctl_ua_type ua_type)
{
union ctl_io *xio;
#if 0
- uint32_t initindex;
+ uint32_t initidx;
#endif
int i;
@@ -11868,9 +11865,9 @@ ctl_lun_reset(struct ctl_lun *lun, union ctl_io *io, ctl_ua_type ua_type)
* This version sets unit attention for every
*/
#if 0
- initindex = ctl_get_initindex(&io->io_hdr.nexus);
+ initidx = ctl_get_initindex(&io->io_hdr.nexus);
for (i = 0; i < CTL_MAX_INITIATORS; i++) {
- if (initindex == i)
+ if (initidx == i)
continue;
lun->pending_ua[i] |= ua_type;
}
@@ -11978,9 +11975,9 @@ ctl_i_t_nexus_reset(union ctl_io *io)
{
struct ctl_softc *softc = control_softc;
struct ctl_lun *lun;
- uint32_t initindex, residx;
+ uint32_t initidx, residx;
- initindex = ctl_get_initindex(&io->io_hdr.nexus);
+ initidx = ctl_get_initindex(&io->io_hdr.nexus);
residx = ctl_get_resindex(&io->io_hdr.nexus);
mtx_lock(&softc->ctl_lock);
STAILQ_FOREACH(lun, &softc->lun_list, links) {
@@ -11989,11 +11986,11 @@ ctl_i_t_nexus_reset(union ctl_io *io)
io->io_hdr.nexus.initid.id,
(io->io_hdr.flags & CTL_FLAG_FROM_OTHER_SC) != 0);
#ifdef CTL_WITH_CA
- ctl_clear_mask(lun->have_ca, initindex);
+ ctl_clear_mask(lun->have_ca, initidx);
#endif
if ((lun->flags & CTL_LUN_RESERVED) && (lun->res_idx == residx))
lun->flags &= ~CTL_LUN_RESERVED;
- lun->pending_ua[initindex] |= CTL_UA_I_T_NEXUS_LOSS;
+ lun->pending_ua[initidx] |= CTL_UA_I_T_NEXUS_LOSS;
mtx_unlock(&lun->lun_lock);
}
mtx_unlock(&softc->ctl_lock);
OpenPOWER on IntegriCloud