diff options
| author | Scott Long <scottl@FreeBSD.org> | 2007-04-17 01:12:35 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2007-04-17 01:12:35 +0000 |
| commit | b653ca76bcff22d62df8b7b791e3630e7fe17aae (patch) | |
| tree | 9194d88bb36e298d99facd9cd97b6d55064d2141 /sys/cam | |
| parent | 629231872b82ebade3909e2ffc9a9cedb4fd5737 (diff) | |
Notes
Diffstat (limited to 'sys/cam')
| -rw-r--r-- | sys/cam/scsi/scsi_sg.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/cam/scsi/scsi_sg.c b/sys/cam/scsi/scsi_sg.c index ad7cedab4f20..9084654d5933 100644 --- a/sys/cam/scsi/scsi_sg.c +++ b/sys/cam/scsi/scsi_sg.c @@ -103,7 +103,6 @@ struct sg_softc { struct devstat *device_stats; TAILQ_HEAD(, sg_rdwr) rdwr_done; struct cdev *dev; - struct cdev *devalias; int sg_timeout; int sg_user_timeout; uint8_t pd_type; @@ -223,7 +222,6 @@ sgcleanup(struct cam_periph *periph) softc = (struct sg_softc *)periph->softc; devstat_remove_entry(softc->device_stats); - destroy_dev(softc->devalias); destroy_dev(softc->dev); if (bootverbose) { xpt_print(periph->path, "removing device entry\n"); @@ -323,8 +321,7 @@ sgregister(struct cam_periph *periph, void *arg) softc->dev = make_dev(&sg_cdevsw, unit2minor(periph->unit_number), UID_ROOT, GID_OPERATOR, 0600, "%s%d", periph->periph_name, periph->unit_number); - softc->devalias = make_dev_alias(softc->dev, "sg%c", - 'a' + periph->unit_number); + (void)make_dev_alias(softc->dev, "sg%c", 'a' + periph->unit_number); cam_periph_lock(periph); softc->dev->si_drv1 = periph; |
