summaryrefslogtreecommitdiffstats
path: root/sys/dev
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
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')
-rw-r--r--sys/dev/aha/aha.c7
-rw-r--r--sys/dev/buslogic/bt.c6
-rw-r--r--sys/dev/dpt/dpt_scsi.c12
-rw-r--r--sys/dev/isp/isp_freebsd.c2
4 files changed, 8 insertions, 19 deletions
diff --git a/sys/dev/aha/aha.c b/sys/dev/aha/aha.c
index e879542..9109c6d 100644
--- a/sys/dev/aha/aha.c
+++ b/sys/dev/aha/aha.c
@@ -55,7 +55,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: aha.c,v 1.8 1998/10/09 21:38:36 gibbs Exp $
+ * $Id: aha.c,v 1.9 1998/10/15 19:53:30 imp Exp $
*/
#include <sys/param.h>
@@ -193,7 +193,6 @@ struct aha_softc *
aha_alloc(int unit, bus_space_tag_t tag, bus_space_handle_t bsh)
{
struct aha_softc *aha;
- int i;
if (unit != AHA_TEMP_UNIT) {
if (unit >= NAHA) {
@@ -283,7 +282,6 @@ aha_probe(struct aha_softc* aha)
u_int status;
u_int intstat;
int error;
- u_int8_t param;
board_id_data_t board_id;
/*
@@ -768,7 +766,6 @@ static void
ahaaction(struct cam_sim *sim, union ccb *ccb)
{
struct aha_softc *aha;
- int s;
CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("ahaaction\n"));
@@ -1050,7 +1047,7 @@ ahaexecuteccb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error)
struct aha_ccb *bccb;
union ccb *ccb;
struct aha_softc *aha;
- int s, i;
+ int s;
u_int32_t paddr;
bccb = (struct aha_ccb *)arg;
diff --git a/sys/dev/buslogic/bt.c b/sys/dev/buslogic/bt.c
index ad34914..7196844 100644
--- a/sys/dev/buslogic/bt.c
+++ b/sys/dev/buslogic/bt.c
@@ -29,7 +29,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: bt.c,v 1.5 1998/10/09 21:38:34 gibbs Exp $
+ * $Id: bt.c,v 1.6 1998/10/15 23:17:58 gibbs Exp $
*/
/*
@@ -194,7 +194,6 @@ struct bt_softc *
bt_alloc(int unit, bus_space_tag_t tag, bus_space_handle_t bsh)
{
struct bt_softc *bt;
- int i;
if (unit != BT_TEMP_UNIT) {
if (unit >= NBT) {
@@ -948,7 +947,6 @@ static void
btaction(struct cam_sim *sim, union ccb *ccb)
{
struct bt_softc *bt;
- int s;
CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("btaction\n"));
@@ -1261,7 +1259,7 @@ btexecuteccb(void *arg, bus_dma_segment_t *dm_segs, int nseg, int error)
struct bt_ccb *bccb;
union ccb *ccb;
struct bt_softc *bt;
- int s, i;
+ int s;
bccb = (struct bt_ccb *)arg;
ccb = bccb->ccb;
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);
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index f3935be..654c17c 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -148,7 +148,7 @@ isp_action(sim, ccb)
{
int s, tgt, error;
struct ispsoftc *isp;
- struct ccb_trans_settings *cts, set;
+ struct ccb_trans_settings *cts;
CAM_DEBUG(ccb->ccb_h.path, CAM_DEBUG_TRACE, ("isp_action\n"));
OpenPOWER on IntegriCloud