summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorLiu Shixin <liushixin2@huawei.com>2020-09-21 16:24:51 +0800
committerJens Axboe <axboe@kernel.dk>2020-10-02 14:53:11 -0600
commit6cd32a44f080347e193dea56cd986282361b7007 (patch)
tree4b3cf77ece0c5346ec9fa53f133f2d871d9b47e3 /drivers/ata
parent8e85f60575d30209779d1b5d41909ef2a41a9d57 (diff)
downloadlinux-6cd32a44f080347e193dea56cd986282361b7007.tar.gz
linux-6cd32a44f080347e193dea56cd986282361b7007.tar.xz
sata, highbank: simplify the return expression of ahci_highbank_suspend
Simplify the return expression. Signed-off-by: Liu Shixin <liushixin2@huawei.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/sata_highbank.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/ata/sata_highbank.c b/drivers/ata/sata_highbank.c
index ad3893c62572..64b2ef15ec19 100644
--- a/drivers/ata/sata_highbank.c
+++ b/drivers/ata/sata_highbank.c
@@ -571,7 +571,6 @@ static int ahci_highbank_suspend(struct device *dev)
struct ahci_host_priv *hpriv = host->private_data;
void __iomem *mmio = hpriv->mmio;
u32 ctl;
- int rc;
if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
dev_err(dev, "firmware update required for suspend/resume\n");
@@ -588,11 +587,7 @@ static int ahci_highbank_suspend(struct device *dev)
writel(ctl, mmio + HOST_CTL);
readl(mmio + HOST_CTL); /* flush */
- rc = ata_host_suspend(host, PMSG_SUSPEND);
- if (rc)
- return rc;
-
- return 0;
+ return ata_host_suspend(host, PMSG_SUSPEND);
}
static int ahci_highbank_resume(struct device *dev)