summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-02-12 04:51:19 +0000
committerscottl <scottl@FreeBSD.org>2005-02-12 04:51:19 +0000
commite30d2450d953e05ae3bbb063b5ced2e134051ad2 (patch)
tree6a7a6a9fe108c350b0caa80e63e03d95f64f3530 /sys
parent2f70035440f140fbbe312f17749fcee5dbf828ea (diff)
downloadFreeBSD-src-e30d2450d953e05ae3bbb063b5ced2e134051ad2.zip
FreeBSD-src-e30d2450d953e05ae3bbb063b5ced2e134051ad2.tar.gz
Remove a shadow declaration of 'error' that caused certain tests to be
pointless. Submitted by: Coverity Prevent analysis tool
Diffstat (limited to 'sys')
-rw-r--r--sys/cam/scsi/scsi_target.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/cam/scsi/scsi_target.c b/sys/cam/scsi/scsi_target.c
index a3726d6..6b07425 100644
--- a/sys/cam/scsi/scsi_target.c
+++ b/sys/cam/scsi/scsi_target.c
@@ -543,7 +543,6 @@ targwrite(struct cdev *dev, struct uio *uio, int ioflag)
("write - uio_resid %d\n", uio->uio_resid));
while (uio->uio_resid >= sizeof(user_ccb) && error == 0) {
union ccb *ccb;
- int error;
error = uiomove((caddr_t)&user_ccb, sizeof(user_ccb), uio);
if (error != 0) {
OpenPOWER on IntegriCloud