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

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>

authored by

Colin Ian King and committed by
Jens Axboe
3aadcf83 8305f72f

+1 -1
+1 -1
drivers/ata/ahci_imx.c
··· 782 782 struct ata_host *host = dev_get_drvdata(ap->dev); 783 783 struct ahci_host_priv *hpriv = host->private_data; 784 784 struct imx_ahci_priv *imxpriv = hpriv->plat_data; 785 - int ret = -EIO; 785 + int ret; 786 786 787 787 if (imxpriv->type == AHCI_IMX53) 788 788 ret = ahci_pmp_retry_srst_ops.softreset(link, class, deadline);