Commit 6cd32a44 authored by Liu Shixin's avatar Liu Shixin Committed by Jens Axboe

sata, highbank: simplify the return expression of ahci_highbank_suspend

Simplify the return expression.
Signed-off-by: default avatarLiu Shixin <liushixin2@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 8e85f605
...@@ -571,7 +571,6 @@ static int ahci_highbank_suspend(struct device *dev) ...@@ -571,7 +571,6 @@ static int ahci_highbank_suspend(struct device *dev)
struct ahci_host_priv *hpriv = host->private_data; struct ahci_host_priv *hpriv = host->private_data;
void __iomem *mmio = hpriv->mmio; void __iomem *mmio = hpriv->mmio;
u32 ctl; u32 ctl;
int rc;
if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
dev_err(dev, "firmware update required for suspend/resume\n"); dev_err(dev, "firmware update required for suspend/resume\n");
...@@ -588,11 +587,7 @@ static int ahci_highbank_suspend(struct device *dev) ...@@ -588,11 +587,7 @@ static int ahci_highbank_suspend(struct device *dev)
writel(ctl, mmio + HOST_CTL); writel(ctl, mmio + HOST_CTL);
readl(mmio + HOST_CTL); /* flush */ readl(mmio + HOST_CTL); /* flush */
rc = ata_host_suspend(host, PMSG_SUSPEND); return ata_host_suspend(host, PMSG_SUSPEND);
if (rc)
return rc;
return 0;
} }
static int ahci_highbank_resume(struct device *dev) static int ahci_highbank_resume(struct device *dev)
......
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