static int sas_ata_clear_pending(struct domain_device *dev, struct ex_phy *phy) { int res; if (dev->dev_type != SATA_PENDING) return 1; res = sas_get_ata_info(dev, phy); if (res) return 0; else return 1; }
static int sas_ata_clear_pending(struct domain_device *dev, struct ex_phy *phy) { int res; /* we weren't pending, so successfully end the reset sequence now */ if (dev->dev_type != SATA_PENDING) return 1; /* hmmm, if this succeeds do we need to repost the domain_device to the * lldd so it can pick up new parameters? */ res = sas_get_ata_info(dev, phy); if (res) return 0; /* retry */ else return 1; }