Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 51713d35 authored by Tejun Heo's avatar Tejun Heo Committed by Jeff Garzik
Browse files

[PATCH] libata: cosmetic update to ata_bus_probe()



Move ata_set_mode() failure handling outside of ap->ops->set_mode if
clause such that it can handle ap->ops->set_mode failures after it's
updated.

Signed-off-by: default avatarTejun Heo <htejun@gmail.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent ec573755
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -1441,13 +1441,13 @@ static int ata_bus_probe(struct ata_port *ap)
				break;
			}
		rc = 0;
	} else {
	} else
		rc = ata_set_mode(ap, &dev);

	if (rc) {
		down_xfermask = 1;
		goto fail;
	}
	}

	for (i = 0; i < ATA_MAX_DEVICES; i++)
		if (ata_dev_enabled(&ap->device[i]))