Don't do destroy_dev on devices which were just aliases.
This commit is contained in:
parent
0272ef9b3e
commit
3bfa7a769d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=66677
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user