The branch main has been updated by scottl:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=fa911920b1f0a2ac082446ac221d1c63fd989db9

commit fa911920b1f0a2ac082446ac221d1c63fd989db9
Author:     Scott Long <sco...@freebsd.org>
AuthorDate: 2022-02-26 18:07:05 +0000
Commit:     Scott Long <sco...@freebsd.org>
CommitDate: 2022-02-26 18:07:05 +0000

    Fix "set but not used" for real in the ciss driver.
---
 sys/dev/ciss/ciss.c | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/sys/dev/ciss/ciss.c b/sys/dev/ciss/ciss.c
index 100562cfc737..0b9648ed530d 100644
--- a/sys/dev/ciss/ciss.c
+++ b/sys/dev/ciss/ciss.c
@@ -2076,11 +2076,9 @@ ciss_free(struct ciss_softc *sc)
 static int
 ciss_start(struct ciss_request *cr)
 {
-    struct ciss_command        *cc __diagused;
     int                        error;
 
-    cc = cr->cr_cc;
-    debug(2, "post command %d tag %d ", cr->cr_tag, cc->header.host_tag);
+    debug(2, "post command %d tag %d ", cr->cr_tag, 
cr->cr_cc->header.host_tag);
 
     /*
      * Map the request's data.
@@ -3061,14 +3059,11 @@ ciss_cam_action(struct cam_sim *sim, union ccb *ccb)
     case XPT_GET_TRAN_SETTINGS:
     {
        struct ccb_trans_settings       *cts = &ccb->cts;
-       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;
 
-       bus = cam_sim_bus(sim);
-       target = cts->ccb_h.target_id;
-
-       debug(1, "XPT_GET_TRAN_SETTINGS %d:%d", bus, target);
+       debug(1, "XPT_GET_TRAN_SETTINGS %d:%d", cam_sim_bus(sim),
+           ctl->ccb_h.target_id);
        /* disconnect always OK */
        cts->protocol = PROTO_SCSI;
        cts->protocol_version = SCSI_REV_2;

Reply via email to