summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-01-08 02:56:21 +0000
committeraraujo <araujo@FreeBSD.org>2016-01-08 02:56:21 +0000
commitf6284c5ff8e291faed44048959162d22eddd705c (patch)
tree014b65dd40b4195bcf8879b2bf04645b50f81f0c
parentb6b275587fa55a87f738369e41c6a18db284aed3 (diff)
downloadFreeBSD-src-f6284c5ff8e291faed44048959162d22eddd705c.zip
FreeBSD-src-f6284c5ff8e291faed44048959162d22eddd705c.tar.gz
MFC: r292971
Clean up unused-but-set-variable spotted by gcc-4.9. Reviewed by: ngie Approved by: rodrigc (mentor) Sponsored by: gandi.net Differential Revision: https://reviews.freebsd.org/D4776
-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