summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 20:44:32 +0000
committerphk <phk@FreeBSD.org>2003-05-31 20:44:32 +0000
commit81cb8df2a198264bca0d069cc72379cf602e37f7 (patch)
tree8d5e39a224be2624519aa2b5098d4efa33245025 /sys/cam
parentcfd44d06333c5b9f1b029667930dfdb549ee6c7e (diff)
downloadFreeBSD-src-81cb8df2a198264bca0d069cc72379cf602e37f7.zip
FreeBSD-src-81cb8df2a198264bca0d069cc72379cf602e37f7.tar.gz
Add /* FALLTHROUGH */
Remove unused variable(s). Order switch in canonical order. Found by: FlexeLint
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_targ_bh.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/sys/cam/scsi/scsi_targ_bh.c b/sys/cam/scsi/scsi_targ_bh.c
index 60e68dd..c991d1b 100644
--- a/sys/cam/scsi/scsi_targ_bh.c
+++ b/sys/cam/scsi/scsi_targ_bh.c
@@ -399,11 +399,8 @@ targbhdislun(struct cam_periph *periph)
static cam_status
targbhctor(struct cam_periph *periph, void *arg)
{
- struct ccb_pathinq *cpi;
struct targbh_softc *softc;
- cpi = (struct ccb_pathinq *)arg;
-
/* Allocate our per-instance private storage */
softc = (struct targbh_softc *)malloc(sizeof(*softc),
M_DEVBUF, M_NOWAIT);
@@ -436,13 +433,13 @@ targbhdtor(struct cam_periph *periph)
targbhdislun(periph);
switch (softc->init_level) {
- default:
- /* FALLTHROUGH */
+ case 0:
+ panic("targdtor - impossible init level");;
case 1:
+ /* FALLTHROUGH */
+ default:
free(softc, M_DEVBUF);
break;
- case 0:
- panic("targdtor - impossible init level");;
}
}
OpenPOWER on IntegriCloud