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
This commit is contained in:
parent
e230f0c486
commit
bf546063c0
@ -773,9 +773,6 @@ passclose(struct cdev *dev, int flag, int fmt, struct thread *td)
|
||||
|
||||
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);
|
||||
|
@ -4961,10 +4961,6 @@ sasetpos(struct cam_periph *periph, int hard, struct mtlocate *locate_info)
|
||||
/*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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user