diff --git a/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c b/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c index 71a807f3f8cd..f884168ed4af 100755 --- a/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c +++ b/drivers/power/qpnp-smbcharger-mmi/qpnp-smbcharger-mmi.c @@ -894,7 +894,7 @@ static ssize_t force_chg_iusb_show(struct device *dev, if (!mmi_chip) { pr_err("chip not valid\n"); - r = -ENODEV; + state = -ENODEV; goto end; } @@ -953,7 +953,7 @@ static ssize_t force_chg_idc_show(struct device *dev, if (!mmi_chip) { pr_err("chip not valid\n"); - r = -ENODEV; + state = -ENODEV; goto end; }