git: 79ed7cb3df27 - main - Fix "set but not used" warnings in the ciss driver.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 25 Nov 2021 03:33:56 UTC
The branch main has been updated by scottl:
URL: https://cgit.FreeBSD.org/src/commit/?id=79ed7cb3df2737a18f76b6173e7de864dfb869e0
commit 79ed7cb3df2737a18f76b6173e7de864dfb869e0
Author: Scott Long <scottl@FreeBSD.org>
AuthorDate: 2021-11-25 03:33:39 +0000
Commit: Scott Long <scottl@FreeBSD.org>
CommitDate: 2021-11-25 03:33:39 +0000
Fix "set but not used" warnings in the ciss driver.
---
sys/dev/ciss/ciss.c | 12 +++---------
1 file 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;