summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-05 13:51:20 +0200
committerJens Axboe <axboe@kernel.dk>2020-04-07 22:49:45 +0200
commit3aadcf83820a8ae675a3ad88a6e889eb9638df7f (patch)
tree4db98f540eaf344a6bcdb2e73afaf71d357260b8 /drivers/ata
parentlibata: Return correct status in sata_pmp_eh_recover_pm() when ATA_DFLAG_DETA... (diff)
downloadlinux-3aadcf83820a8ae675a3ad88a6e889eb9638df7f.tar.xz
linux-3aadcf83820a8ae675a3ad88a6e889eb9638df7f.zip
ata: ahci-imx: remove redundant assignment to ret
The variable ret is being initialized with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/ahci_imx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c
index 948d2c6557f3..388baf528fa8 100644
--- a/drivers/ata/ahci_imx.c
+++ b/drivers/ata/ahci_imx.c
@@ -782,7 +782,7 @@ static int ahci_imx_softreset(struct ata_link *link, unsigned int *class,
struct ata_host *host = dev_get_drvdata(ap->dev);
struct ahci_host_priv *hpriv = host->private_data;
struct imx_ahci_priv *imxpriv = hpriv->plat_data;
- int ret = -EIO;
+ int ret;
if (imxpriv->type == AHCI_IMX53)
ret = ahci_pmp_retry_srst_ops.softreset(link, class, deadline);