summaryrefslogtreecommitdiffstats
path: root/sys/cam
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2007-04-17 01:12:35 +0000
committerscottl <scottl@FreeBSD.org>2007-04-17 01:12:35 +0000
commitee0894c663d96e1c56d3709ca4bcc97931f9c57c (patch)
tree9194d88bb36e298d99facd9cd97b6d55064d2141 /sys/cam
parentadc1c67ec63a3d22fa0a7b4b7d5d0826f38a8fb6 (diff)
downloadFreeBSD-src-ee0894c663d96e1c56d3709ca4bcc97931f9c57c.zip
FreeBSD-src-ee0894c663d96e1c56d3709ca4bcc97931f9c57c.tar.gz
Don't delete the devalias, as per the man page.
Submitted by: jmg
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_sg.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/cam/scsi/scsi_sg.c b/sys/cam/scsi/scsi_sg.c
index ad7ceda..9084654 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;
OpenPOWER on IntegriCloud