Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 5644
b: refs/heads/master
c: c2c96f4
h: refs/heads/master
v: v3
  • Loading branch information
Kai Makisara authored and James Bottomley committed Aug 2, 2005
1 parent 09dbd03 commit 80d49f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1a15468d58e75debc5437b2e4e12d02a89bb3a2
refs/heads/master: c2c96f46f46df072e49200a1181b3086cd2f08a6
8 changes: 2 additions & 6 deletions trunk/drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -4149,26 +4149,22 @@ static int __init init_st(void)
do_create_driverfs_files();
return 0;
}
if (st_sysfs_class)
class_destroy(st_sysfs_class);
unregister_chrdev_region(MKDEV(SCSI_TAPE_MAJOR, 0),

ST_MAX_TAPE_ENTRIES);
}
class_destroy(st_sysfs_class);

printk(KERN_ERR "Unable to get major %d for SCSI tapes\n", SCSI_TAPE_MAJOR);
return 1;
}

static void __exit exit_st(void)
{
if (st_sysfs_class)
class_destroy(st_sysfs_class);
st_sysfs_class = NULL;
do_remove_driverfs_files();
scsi_unregister_driver(&st_template.gendrv);
unregister_chrdev_region(MKDEV(SCSI_TAPE_MAJOR, 0),
ST_MAX_TAPE_ENTRIES);
class_destroy(st_sysfs_class);
kfree(scsi_tapes);
printk(KERN_INFO "st: Unloaded.\n");
}
Expand Down

0 comments on commit 80d49f4

Please sign in to comment.