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

ata: simplify the return expression of brcm_ahci_remove

Simplify the return expression.

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>

authored by

Minghao Chi and committed by
Damien Le Moal
ec194bdb 0cb63670

+1 -6
+1 -6
drivers/ata/ahci_brcm.c
··· 549 549 struct ata_host *host = dev_get_drvdata(&pdev->dev); 550 550 struct ahci_host_priv *hpriv = host->private_data; 551 551 struct brcm_ahci_priv *priv = hpriv->plat_data; 552 - int ret; 553 552 554 553 brcm_sata_phys_disable(priv); 555 554 556 - ret = ata_platform_remove_one(pdev); 557 - if (ret) 558 - return ret; 559 - 560 - return 0; 555 + return ata_platform_remove_one(pdev); 561 556 } 562 557 563 558 static void brcm_ahci_shutdown(struct platform_device *pdev)