diff options
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/ide-scsi.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index 8f6b5bf580f6..2b5b8a93bc10 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c | |||
@@ -801,15 +801,10 @@ static int idescsi_ide_open(struct inode *inode, struct file *filp) | |||
801 | { | 801 | { |
802 | struct gendisk *disk = inode->i_bdev->bd_disk; | 802 | struct gendisk *disk = inode->i_bdev->bd_disk; |
803 | struct ide_scsi_obj *scsi; | 803 | struct ide_scsi_obj *scsi; |
804 | ide_drive_t *drive; | ||
805 | 804 | ||
806 | if (!(scsi = ide_scsi_get(disk))) | 805 | if (!(scsi = ide_scsi_get(disk))) |
807 | return -ENXIO; | 806 | return -ENXIO; |
808 | 807 | ||
809 | drive = scsi->drive; | ||
810 | |||
811 | drive->usage++; | ||
812 | |||
813 | return 0; | 808 | return 0; |
814 | } | 809 | } |
815 | 810 | ||
@@ -817,9 +812,6 @@ static int idescsi_ide_release(struct inode *inode, struct file *filp) | |||
817 | { | 812 | { |
818 | struct gendisk *disk = inode->i_bdev->bd_disk; | 813 | struct gendisk *disk = inode->i_bdev->bd_disk; |
819 | struct ide_scsi_obj *scsi = ide_scsi_g(disk); | 814 | struct ide_scsi_obj *scsi = ide_scsi_g(disk); |
820 | ide_drive_t *drive = scsi->drive; | ||
821 | |||
822 | drive->usage--; | ||
823 | 815 | ||
824 | ide_scsi_put(scsi); | 816 | ide_scsi_put(scsi); |
825 | 817 | ||