diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:24 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-10 16:39:24 -0400 |
commit | 2a924662b646fa25cb491d50aa1202a94aa4ac55 (patch) | |
tree | 9339ca9cbc1600149a91a6b0fa919ef0d3b6ec3d /drivers/scsi | |
parent | 3cd5f1eae093a7d6ff8a63c746eba9d6f689ba91 (diff) |
ide: remove needless drive->present checks from device drivers
Remove needless drive->present checks from ->probe methods
(device model takes care of that).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/ide-scsi.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c index daa5f3115ddc..6a661a4454ee 100644 --- a/drivers/scsi/ide-scsi.c +++ b/drivers/scsi/ide-scsi.c | |||
@@ -822,7 +822,6 @@ static int ide_scsi_probe(ide_drive_t *drive) | |||
822 | return -ENODEV; | 822 | return -ENODEV; |
823 | 823 | ||
824 | if (!strstr("ide-scsi", drive->driver_req) || | 824 | if (!strstr("ide-scsi", drive->driver_req) || |
825 | !drive->present || | ||
826 | drive->media == ide_disk || | 825 | drive->media == ide_disk || |
827 | !(host = scsi_host_alloc(&idescsi_template,sizeof(idescsi_scsi_t)))) | 826 | !(host = scsi_host_alloc(&idescsi_template,sizeof(idescsi_scsi_t)))) |
828 | return -ENODEV; | 827 | return -ENODEV; |