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 1: - free(softc, M_DEVBUF); - break; case 0: panic("targdtor - impossible init level");; + case 1: + /* FALLTHROUGH */ + default: + free(softc, M_DEVBUF); + break; } }