Skip to content

Commit

Permalink
ide: remove redundant hwif->present check from ide_register_hw()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Feb 2, 2008
1 parent 1bee4d1 commit 2244e85
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/ide/ide.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,6 @@ int ide_register_hw(hw_regs_t *hw, void (*quirkproc)(ide_drive_t *),
ide_init_port_data(hwif, index);
init_hwif_default(hwif, index);
}
if (hwif->present)
return -1;

ide_init_port_hw(hwif, hw);
hwif->quirkproc = quirkproc;
Expand Down

0 comments on commit 2244e85

Please sign in to comment.