Commit f0aaae1a authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown

regulator: bd96801: Delete unnecessary check in probe()

The "idesc" pointer points to the middle of rdesc[] array so it can't be
NULL.  Also rdesc isn't NULL.  Delete the check.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/01cd578f-127b-4c8b-a8c6-5e11a0a2555c@stanley.mountainSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 8400291e
...@@ -853,8 +853,6 @@ static int bd96801_probe(struct platform_device *pdev) ...@@ -853,8 +853,6 @@ static int bd96801_probe(struct platform_device *pdev)
ldo_errs_arr[temp_notif_ldos] = rdesc[i].ldo_errs; ldo_errs_arr[temp_notif_ldos] = rdesc[i].ldo_errs;
temp_notif_ldos++; temp_notif_ldos++;
} }
if (!idesc)
continue;
/* Register INTB handlers for configured protections */ /* Register INTB handlers for configured protections */
for (j = 0; j < idesc->num_irqs; j++) { for (j = 0; j < idesc->num_irqs; j++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment