diff options
author | scottl <scottl@FreeBSD.org> | 2005-02-12 04:51:19 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2005-02-12 04:51:19 +0000 |
commit | e30d2450d953e05ae3bbb063b5ced2e134051ad2 (patch) | |
tree | 6a7a6a9fe108c350b0caa80e63e03d95f64f3530 /sys/cam | |
parent | 2f70035440f140fbbe312f17749fcee5dbf828ea (diff) | |
download | FreeBSD-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/cam')
-rw-r--r-- | sys/cam/scsi/scsi_target.c | 1 |
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) { |