summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2015-12-31 01:57:55 +0000
committeraraujo <araujo@FreeBSD.org>2015-12-31 01:57:55 +0000
commit8571577d81a2a8b4a5567f4b77fbc388a6d67077 (patch)
treef7a189216d16c84ffdda007cfaf50d50409c71a9 /usr.sbin
parent095eb8147518134ad20380dc0ee73a8da400b656 (diff)
downloadFreeBSD-src-8571577d81a2a8b4a5567f4b77fbc388a6d67077.zip
FreeBSD-src-8571577d81a2a8b4a5567f4b77fbc388a6d67077.tar.gz
Clean up unused-but-set-variable spotted by gcc-4.9.
Approved by: bapt (mentor) Differential Revision: https://reviews.freebsd.org/D4736
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/camdd/camdd.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/usr.sbin/camdd/camdd.c b/usr.sbin/camdd/camdd.c
index 573214e..9284eb5 100644
--- a/usr.sbin/camdd/camdd.c
+++ b/usr.sbin/camdd/camdd.c
@@ -1276,7 +1276,6 @@ camdd_probe_pass(struct cam_device *cam_dev, struct camdd_io_opts *io_opts,
struct camdd_dev_pass *pass_dev;
struct kevent ke;
int scsi_dev_type;
- int retval;
dev = NULL;
@@ -1336,7 +1335,6 @@ camdd_probe_pass(struct cam_device *cam_dev, struct camdd_io_opts *io_opts,
if ((ccb->ccb_h.status & CAM_STATUS_MASK) != CAM_REQ_CMP) {
cam_error_print(cam_dev, ccb, CAM_ESF_ALL, CAM_EPF_ALL, stderr);
- retval = 1;
goto bailout;
}
@@ -1371,11 +1369,8 @@ camdd_probe_pass(struct cam_device *cam_dev, struct camdd_io_opts *io_opts,
if (cam_send_ccb(cam_dev, ccb) < 0) {
warn("error sending READ CAPACITY (16) command");
-
cam_error_print(cam_dev, ccb, CAM_ESF_ALL,
CAM_EPF_ALL, stderr);
-
- retval = 1;
goto bailout;
}
OpenPOWER on IntegriCloud