diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-02 13:56:38 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-02 13:56:38 -0500 |
commit | 2244e850632f82466d7c041546326c7055fc7159 (patch) | |
tree | 79edb64767f83b1de01296180efaa91d231c1047 /drivers/ide/ide.c | |
parent | 1bee4d1dce2d76bcf0bf9565298c62666de0fa1d (diff) |
ide: remove redundant hwif->present check from ide_register_hw()
We check earlier for hwif->present and call ide_unregister() if necessary
(after ide_unregister() hwif->present will be always cleared).
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index eeb0e6a77f5b..a71591ab0c5f 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -720,8 +720,6 @@ found: | |||
720 | ide_init_port_data(hwif, index); | 720 | ide_init_port_data(hwif, index); |
721 | init_hwif_default(hwif, index); | 721 | init_hwif_default(hwif, index); |
722 | } | 722 | } |
723 | if (hwif->present) | ||
724 | return -1; | ||
725 | 723 | ||
726 | ide_init_port_hw(hwif, hw); | 724 | ide_init_port_hw(hwif, hw); |
727 | hwif->quirkproc = quirkproc; | 725 | hwif->quirkproc = quirkproc; |