Message ID | 20210826174301.21255-1-asha.16@itfac.mrt.ac.lk |
---|---|
State | New |
Headers | show |
Series | ATA:libata-pmp: fix warn: missing error code | expand |
diff --git a/drivers/ata/libata-pmp.c b/drivers/ata/libata-pmp.c index ba7be3f38617..2ea7b9986f4e 100644 --- a/drivers/ata/libata-pmp.c +++ b/drivers/ata/libata-pmp.c @@ -977,6 +977,7 @@ static int sata_pmp_eh_recover(struct ata_port *ap) ata_link_warn(pmp_link, "failed to disable NOTIFY (err_mask=0x%x)\n", err_mask); + rc = -EIO; goto pmp_fail; } }
smatch reported 'sata_pmp_eh_recover() warn: missing error code 'rc''. This patch resolve it by adding I/O error code to 'rc'. Signed-off-by: F.A. SULAIMAN <asha.16@itfac.mrt.ac.lk> --- drivers/ata/libata-pmp.c | 1 + 1 file changed, 1 insertion(+)