ide: remove now superfluous check from ide_host_register()

There should be no functional changes caused by this patch.
Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
parent 255115fb
...@@ -1362,9 +1362,6 @@ int ide_host_register(struct ide_host *host, const struct ide_port_info *d, ...@@ -1362,9 +1362,6 @@ int ide_host_register(struct ide_host *host, const struct ide_port_info *d,
ide_init_port_hw(hwif, hws[i]); ide_init_port_hw(hwif, hws[i]);
ide_port_apply_params(hwif); ide_port_apply_params(hwif);
if (d == NULL) {
mate = NULL;
} else {
if ((i & 1) && mate) { if ((i & 1) && mate) {
hwif->mate = mate; hwif->mate = mate;
mate->mate = hwif; mate->mate = hwif;
...@@ -1374,8 +1371,6 @@ int ide_host_register(struct ide_host *host, const struct ide_port_info *d, ...@@ -1374,8 +1371,6 @@ int ide_host_register(struct ide_host *host, const struct ide_port_info *d,
ide_init_port(hwif, i & 1, d); ide_init_port(hwif, i & 1, d);
ide_port_cable_detect(hwif); ide_port_cable_detect(hwif);
}
ide_port_init_devices(hwif); ide_port_init_devices(hwif);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment