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@xxxxxxxxxxxxxxx> --- drivers/ata/libata-pmp.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- 2.17.1