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/ide/ide-tape.c | |
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/ide/ide-tape.c')
-rw-r--r-- | drivers/ide/ide-tape.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-tape.c b/drivers/ide/ide-tape.c index 2745e5d26848..874e60fc85d1 100644 --- a/drivers/ide/ide-tape.c +++ b/drivers/ide/ide-tape.c | |||
@@ -2647,10 +2647,10 @@ static int ide_tape_probe(ide_drive_t *drive) | |||
2647 | 2647 | ||
2648 | if (!strstr("ide-tape", drive->driver_req)) | 2648 | if (!strstr("ide-tape", drive->driver_req)) |
2649 | goto failed; | 2649 | goto failed; |
2650 | if (!drive->present) | 2650 | |
2651 | goto failed; | ||
2652 | if (drive->media != ide_tape) | 2651 | if (drive->media != ide_tape) |
2653 | goto failed; | 2652 | goto failed; |
2653 | |||
2654 | if (!idetape_identify_device(drive)) { | 2654 | if (!idetape_identify_device(drive)) { |
2655 | printk(KERN_ERR "ide-tape: %s: not supported by this version of" | 2655 | printk(KERN_ERR "ide-tape: %s: not supported by this version of" |
2656 | " the driver\n", drive->name); | 2656 | " the driver\n", drive->name); |