mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 05:31:08 -04:00
ata: simplify the return expression of brcm_ahci_remove
Simplify the return expression. Reported-by: Zeal Robot <[email protected]> Signed-off-by: Minghao Chi <[email protected]> Signed-off-by: Damien Le Moal <[email protected]>
This commit is contained in:
1 parent
0cb63670d5
commit
ec194bdbc5
1 file changed
+1
-6
@@ -549,15 +549,10 @@ static int brcm_ahci_remove(struct platform_device *pdev)
|
||||
struct ata_host *host = dev_get_drvdata(&pdev->dev);
|
||||
struct ahci_host_priv *hpriv = host->private_data;
|
||||
struct brcm_ahci_priv *priv = hpriv->plat_data;
|
||||
int ret;
|
||||
|
||||
brcm_sata_phys_disable(priv);
|
||||
|
||||
ret = ata_platform_remove_one(pdev);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
return 0;
|
||||
return ata_platform_remove_one(pdev);
|
||||
}
|
||||
|
||||
static void brcm_ahci_shutdown(struct platform_device *pdev)
|
||||
|
||||
Reference in new issue
Block a user