Skip to content

Commit 6cd32a4

Browse files
Liu Shixinaxboe
authored andcommitted
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>
1 parent 8e85f60 commit 6cd32a4

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

drivers/ata/sata_highbank.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ static int ahci_highbank_suspend(struct device *dev)
571571
struct ahci_host_priv *hpriv = host->private_data;
572572
void __iomem *mmio = hpriv->mmio;
573573
u32 ctl;
574-
int rc;
575574

576575
if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) {
577576
dev_err(dev, "firmware update required for suspend/resume\n");
@@ -588,11 +587,7 @@ static int ahci_highbank_suspend(struct device *dev)
588587
writel(ctl, mmio + HOST_CTL);
589588
readl(mmio + HOST_CTL); /* flush */
590589

591-
rc = ata_host_suspend(host, PMSG_SUSPEND);
592-
if (rc)
593-
return rc;
594-
595-
return 0;
590+
return ata_host_suspend(host, PMSG_SUSPEND);
596591
}
597592

598593
static int ahci_highbank_resume(struct device *dev)

0 commit comments

Comments
 (0)