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-disk.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-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index edfa63750dde..eeb2c3b22e97 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -1136,8 +1136,7 @@ static int ide_disk_probe(ide_drive_t *drive) | |||
1136 | /* strstr("foo", "") is non-NULL */ | 1136 | /* strstr("foo", "") is non-NULL */ |
1137 | if (!strstr("ide-disk", drive->driver_req)) | 1137 | if (!strstr("ide-disk", drive->driver_req)) |
1138 | goto failed; | 1138 | goto failed; |
1139 | if (!drive->present) | 1139 | |
1140 | goto failed; | ||
1141 | if (drive->media != ide_disk) | 1140 | if (drive->media != ide_disk) |
1142 | goto failed; | 1141 | goto failed; |
1143 | 1142 | ||