summaryrefslogtreecommitdiffstats
path: root/sys/dev/dpt
diff options
context:
space:
mode:
authorgibbs <gibbs@FreeBSD.org>1998-10-15 23:46:33 +0000
committergibbs <gibbs@FreeBSD.org>1998-10-15 23:46:33 +0000
commit8111be023512a464b4ba91ea2d76a5cc5597e728 (patch)
tree0e795fe23d37f39a17294d8fb71163c36a803519 /sys/dev/dpt
parentf3dbbe3c84a7bfd70a0dd80547c8d999e69efb7b (diff)
downloadFreeBSD-src-8111be023512a464b4ba91ea2d76a5cc5597e728.zip
FreeBSD-src-8111be023512a464b4ba91ea2d76a5cc5597e728.tar.gz
-Wunused cleanup.
Submitted by: Poul-Henning Kamp <phk@freebsd.org>
Diffstat (limited to 'sys/dev/dpt')
-rw-r--r--sys/dev/dpt/dpt_scsi.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/dev/dpt/dpt_scsi.c b/sys/dev/dpt/dpt_scsi.c
index 947caba..42ff038 100644
--- a/sys/dev/dpt/dpt_scsi.c
+++ b/sys/dev/dpt/dpt_scsi.c
@@ -43,7 +43,7 @@
* arrays that span controllers (Wow!).
*/
-#ident "$Id: dpt_scsi.c,v 1.18 1998/10/09 21:42:19 gibbs Exp $"
+#ident "$Id: dpt_scsi.c,v 1.19 1998/10/15 23:17:56 gibbs Exp $"
#define _DPT_C_
@@ -378,8 +378,7 @@ dpt_get_conf(dpt_softc_t *dpt, dpt_ccb_t *dccb, u_int32_t dccb_busaddr,
{
eata_ccb_t *cp;
- u_int16_t *ip;
- u_int8_t status, sig1, sig2, sig3;
+ u_int8_t status;
int ndx;
int ospl;
@@ -479,7 +478,6 @@ dpt_detect_cache(dpt_softc_t *dpt, dpt_ccb_t *dccb, u_int32_t dccb_busaddr,
{
eata_ccb_t *cp;
u_int8_t *param;
- int size;
int bytes;
int result;
int ospl;
@@ -611,7 +609,7 @@ dptexecuteccb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error)
struct dpt_ccb *dccb;
union ccb *ccb;
struct dpt_softc *dpt;
- int s, i;
+ int s;
dccb = (struct dpt_ccb *)arg;
ccb = dccb->ccb;
@@ -706,7 +704,6 @@ static void
dpt_action(struct cam_sim *sim, union ccb *ccb)
{
struct dpt_softc *dpt;
- int s;
CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("dpt_action\n"));
@@ -1003,8 +1000,6 @@ dpt_send_eata_command(dpt_softc_t *dpt, eata_ccb_t *cmd_block,
u_int ifc, u_int code, u_int code2)
{
u_int loop;
- u_int result;
- u_int test;
if (!retries)
retries = 20000;
@@ -1151,7 +1146,6 @@ dpt_init(struct dpt_softc *dpt)
int index;
int i;
int retval;
- u_int8_t byte;
#ifdef DPT_RESET_BOARD
printf("dpt%d: resetting HBA\n", dpt->unit);
OpenPOWER on IntegriCloud