From 3bfa7a769dfc76483711f34572177baddc9bb37c Mon Sep 17 00:00:00 2001 From: Matt Jacob Date: Thu, 5 Oct 2000 16:58:43 +0000 Subject: [PATCH] Don't do destroy_dev on devices which were just aliases. --- sys/cam/scsi/scsi_sa.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sys/cam/scsi/scsi_sa.c b/sys/cam/scsi/scsi_sa.c index 91a496c1ecc1..c592882b845d 100644 --- a/sys/cam/scsi/scsi_sa.c +++ b/sys/cam/scsi/scsi_sa.c @@ -183,9 +183,6 @@ struct sa_devs { dev_t nr_dev; dev_t er_dev; } mode_devs[SA_NUM_MODES]; - dev_t r_dev; - dev_t nr_dev; - dev_t er_dev; }; struct sa_softc { @@ -1285,9 +1282,6 @@ sacleanup(struct cam_periph *periph) devstat_remove_entry(&softc->device_stats); destroy_dev(softc->devs.ctl_dev); - destroy_dev(softc->devs.r_dev); - destroy_dev(softc->devs.nr_dev); - destroy_dev(softc->devs.er_dev); for (i = 0; i < SA_NUM_MODES; i++) { destroy_dev(softc->devs.mode_devs[i].r_dev);