diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 20:44:32 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2003-05-31 20:44:32 +0000 |
commit | 82dcf708f8f8ae0409d283f57157ef627ef5f489 (patch) | |
tree | 8d5e39a224be2624519aa2b5098d4efa33245025 /sys/cam | |
parent | bd961794c335a5de4fa1a2eb00f3be9b7f2b5913 (diff) | |
download | src-82dcf708f8f8ae0409d283f57157ef627ef5f489.tar.gz src-82dcf708f8f8ae0409d283f57157ef627ef5f489.zip |
Add /* FALLTHROUGH */
Remove unused variable(s).
Order switch in canonical order.
Found by: FlexeLint
Notes
Notes:
svn path=/head/; revision=115561
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/scsi/scsi_targ_bh.c | 11 |
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 60e68dde06bf..c991d1bb470f 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");; } } |