mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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>
This commit is contained in:
parent
8305f72f95
commit
3aadcf8382
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue