Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Liu Shixin and committed by
Jens Axboe
6cd32a44 8e85f605

+1 -6
+1 -6
drivers/ata/sata_highbank.c
··· 571 571 struct ahci_host_priv *hpriv = host->private_data; 572 572 void __iomem *mmio = hpriv->mmio; 573 573 u32 ctl; 574 - int rc; 575 574 576 575 if (hpriv->flags & AHCI_HFLAG_NO_SUSPEND) { 577 576 dev_err(dev, "firmware update required for suspend/resume\n"); ··· 587 588 writel(ctl, mmio + HOST_CTL); 588 589 readl(mmio + HOST_CTL); /* flush */ 589 590 590 - rc = ata_host_suspend(host, PMSG_SUSPEND); 591 - if (rc) 592 - return rc; 593 - 594 - return 0; 591 + return ata_host_suspend(host, PMSG_SUSPEND); 595 592 } 596 593 597 594 static int ahci_highbank_resume(struct device *dev)