svn commit: r295114 - head/sys/cam/scsi
Marcelo Araujo
araujo at FreeBSD.org
Mon Feb 1 02:34:00 UTC 2016
Author: araujo
Date: Mon Feb 1 02:33:58 2016
New Revision: 295114
URL: https://svnweb.freebsd.org/changeset/base/295114
Log:
Clean up unused-but-set-variable spotted by gcc-4.9.
Reviewed by: mav
Approved by: rodrigc (mentor)
MFC after: 2 weeks
Sponsored by: gandi.net
Differential Revision: https://reviews.freebsd.org/D5109
Modified:
head/sys/cam/scsi/scsi_pass.c
head/sys/cam/scsi/scsi_sa.c
Modified: head/sys/cam/scsi/scsi_pass.c
==============================================================================
--- head/sys/cam/scsi/scsi_pass.c Mon Feb 1 02:31:59 2016 (r295113)
+++ head/sys/cam/scsi/scsi_pass.c Mon Feb 1 02:33:58 2016 (r295114)
@@ -773,9 +773,6 @@ passclose(struct cdev *dev, int flag, in
if (softc->open_count == 0) {
struct pass_io_req *io_req, *io_req2;
- int need_unlock;
-
- need_unlock = 0;
TAILQ_FOREACH_SAFE(io_req, &softc->done_queue, links, io_req2) {
TAILQ_REMOVE(&softc->done_queue, io_req, links);
Modified: head/sys/cam/scsi/scsi_sa.c
==============================================================================
--- head/sys/cam/scsi/scsi_sa.c Mon Feb 1 02:31:59 2016 (r295113)
+++ head/sys/cam/scsi/scsi_sa.c Mon Feb 1 02:33:58 2016 (r295114)
@@ -4961,10 +4961,6 @@ sasetpos(struct cam_periph *periph, int
/*sense_len*/ SSD_FULL_SIZE,
/*timeout*/ SPACE_TIMEOUT);
} else {
- uint32_t blk_pointer;
-
- blk_pointer = locate_info->logical_id;
-
scsi_locate_10(&ccb->csio,
/*retries*/ 1,
/*cbfcnp*/ sadone,
More information about the svn-src-all
mailing list