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>
This commit is contained in:
parent
1bee4d1dce
commit
2244e85063
1 changed files with 0 additions and 2 deletions
|
@ -720,8 +720,6 @@ found:
|
||||||
ide_init_port_data(hwif, index);
|
ide_init_port_data(hwif, index);
|
||||||
init_hwif_default(hwif, index);
|
init_hwif_default(hwif, index);
|
||||||
}
|
}
|
||||||
if (hwif->present)
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
ide_init_port_hw(hwif, hw);
|
ide_init_port_hw(hwif, hw);
|
||||||
hwif->quirkproc = quirkproc;
|
hwif->quirkproc = quirkproc;
|
||||||
|
|
Loading…
Add table
Reference in a new issue