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-floppy.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-floppy.c')
-rw-r--r-- | drivers/ide/ide-floppy.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-floppy.c b/drivers/ide/ide-floppy.c index 59baa9643f8b..327960380908 100644 --- a/drivers/ide/ide-floppy.c +++ b/drivers/ide/ide-floppy.c | |||
@@ -1390,10 +1390,10 @@ static int ide_floppy_probe(ide_drive_t *drive) | |||
1390 | 1390 | ||
1391 | if (!strstr("ide-floppy", drive->driver_req)) | 1391 | if (!strstr("ide-floppy", drive->driver_req)) |
1392 | goto failed; | 1392 | goto failed; |
1393 | if (!drive->present) | 1393 | |
1394 | goto failed; | ||
1395 | if (drive->media != ide_floppy) | 1394 | if (drive->media != ide_floppy) |
1396 | goto failed; | 1395 | goto failed; |
1396 | |||
1397 | if (!idefloppy_identify_device(drive, drive->id)) { | 1397 | if (!idefloppy_identify_device(drive, drive->id)) { |
1398 | printk(KERN_ERR "ide-floppy: %s: not supported by this version" | 1398 | printk(KERN_ERR "ide-floppy: %s: not supported by this version" |
1399 | " of ide-floppy\n", drive->name); | 1399 | " of ide-floppy\n", drive->name); |