summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorConstantine A. Murenin <cnst@cvs.openbsd.org>2008-11-10 15:55:07 +0000
committerConstantine A. Murenin <cnst@cvs.openbsd.org>2008-11-10 15:55:07 +0000
commit0aa45cb5579b7d0d61c3aca817e576a93e6ef46f (patch)
treede5478f740cb8fe3cf4042c328d948af8d2b731a /sys/dev/ic
parent2ed99faf17fcf76423092daa9799537e66b5d3a8 (diff)
remove unused variable 'error' from two functions; llvm/clang; ok dlg
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ciss.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c
index 2cea0d57f97..175855f0ec0 100644
--- a/sys/dev/ic/ciss.c
+++ b/sys/dev/ic/ciss.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ciss.c,v 1.31 2008/09/10 14:01:22 blambert Exp $ */
+/* $OpenBSD: ciss.c,v 1.32 2008/11/10 15:55:06 cnst Exp $ */
/*
* Copyright (c) 2005,2006 Michael Shalayeff
@@ -826,7 +826,6 @@ ciss_scsi_raw_cmd(struct scsi_xfer *xs) /* TODO */
struct ciss_ccb *ccb;
struct ciss_cmd *cmd;
ciss_lock_t lock;
- int error;
CISS_DPRINTF(CISS_D_CMD, ("ciss_scsi_raw_cmd "));
@@ -843,7 +842,6 @@ ciss_scsi_raw_cmd(struct scsi_xfer *xs) /* TODO */
return (COMPLETE);
}
- error = 0;
xs->error = XS_NOERROR;
/* TODO check this target has not yet employed w/ any volume */
@@ -886,7 +884,6 @@ ciss_scsi_cmd(struct scsi_xfer *xs)
u_int8_t target = link->target;
struct ciss_ccb *ccb;
struct ciss_cmd *cmd;
- int error;
ciss_lock_t lock;
CISS_DPRINTF(CISS_D_CMD, ("ciss_scsi_cmd "));
@@ -904,7 +901,6 @@ ciss_scsi_cmd(struct scsi_xfer *xs)
return (COMPLETE);
}
- error = 0;
xs->error = XS_NOERROR;
/* XXX emulate SYNCHRONIZE_CACHE ??? */