Skip to content

Commit 3aadcf8

Browse files
Colin Ian Kingaxboe
authored andcommitted
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 <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 8305f72 commit 3aadcf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/ata/ahci_imx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ static int ahci_imx_softreset(struct ata_link *link, unsigned int *class,
782782
struct ata_host *host = dev_get_drvdata(ap->dev);
783783
struct ahci_host_priv *hpriv = host->private_data;
784784
struct imx_ahci_priv *imxpriv = hpriv->plat_data;
785-
int ret = -EIO;
785+
int ret;
786786

787787
if (imxpriv->type == AHCI_IMX53)
788788
ret = ahci_pmp_retry_srst_ops.softreset(link, class, deadline);

0 commit comments

Comments
 (0)