summaryrefslogtreecommitdiff
path: root/drivers/ata/ahci_imx.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-04-05 14:51:20 +0300
committerJens Axboe <axboe@kernel.dk>2020-04-07 23:49:45 +0300
commit3aadcf83820a8ae675a3ad88a6e889eb9638df7f (patch)
tree4db98f540eaf344a6bcdb2e73afaf71d357260b8 /drivers/ata/ahci_imx.c
parent8305f72f952cff21ce8109dc1ea4b321c8efc5af (diff)
downloadlinux-3aadcf83820a8ae675a3ad88a6e889eb9638df7f.tar.xz
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/ahci_imx.c')
-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);