aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Long <scottl@FreeBSD.org>2021-11-25 03:33:39 +0000
committerScott Long <scottl@FreeBSD.org>2021-11-25 03:33:39 +0000
commit79ed7cb3df2737a18f76b6173e7de864dfb869e0 (patch)
tree151b3ce1798590bdd332aff199612b10249bf349
parent61f17c5fd6cfaaf4fa9f543965997022488a29d5 (diff)
downloadsrc-79ed7cb3df2737a18f76b6173e7de864dfb869e0.tar.gz
src-79ed7cb3df2737a18f76b6173e7de864dfb869e0.zip
Fix "set but not used" warnings in the ciss driver.
-rw-r--r--sys/dev/ciss/ciss.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index d87f32610b20..100562cfc737 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -1489,12 +1489,11 @@ ciss_init_physical(struct ciss_softc *sc)
struct ciss_lun_report *cll;
int error = 0, i;
int nphys;
- int bus, target;
+ int bus;
debug_called(1);
bus = 0;
- target = 0;
cll = ciss_report_luns(sc, CISS_OPCODE_REPORT_PHYSICAL_LUNS,
sc->ciss_cfg->max_physical_supported);
@@ -2077,7 +2076,7 @@ ciss_free(struct ciss_softc *sc)
static int
ciss_start(struct ciss_request *cr)
{
- struct ciss_command *cc; /* XXX debugging only */
+ struct ciss_command *cc __diagused;
int error;
cc = cr->cr_cc;
@@ -2535,12 +2534,9 @@ ciss_preen_command(struct ciss_request *cr)
static void
ciss_release_request(struct ciss_request *cr)
{
- struct ciss_softc *sc;
debug_called(2);
- sc = cr->cr_sc;
-
/* release the request to the free queue */
ciss_requeue_free(cr);
}
@@ -3065,7 +3061,7 @@ ciss_cam_action(struct cam_sim *sim, union ccb *ccb)
case XPT_GET_TRAN_SETTINGS:
{
struct ccb_trans_settings *cts = &ccb->cts;
- int bus, target;
+ int bus __diagused, target __diagused;
struct ccb_trans_settings_spi *spi = &cts->xport_specific.spi;
struct ccb_trans_settings_scsi *scsi = &cts->proto_specific.scsi;
@@ -3667,14 +3663,12 @@ ciss_notify_event(struct ciss_softc *sc)
static void
ciss_notify_complete(struct ciss_request *cr)
{
- struct ciss_command *cc;
struct ciss_notify *cn;
struct ciss_softc *sc;
int scsi_status;
int command_status;
debug_called(1);
- cc = cr->cr_cc;
cn = (struct ciss_notify *)cr->cr_data;
sc = cr->cr_sc;