File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2244,7 +2244,7 @@ static int ipmi_pnp_probe(struct pnp_dev *dev,
2244
2244
acpi_handle handle ;
2245
2245
acpi_status status ;
2246
2246
unsigned long long tmp ;
2247
- int rv ;
2247
+ int rv = - EINVAL ;
2248
2248
2249
2249
acpi_dev = pnp_acpi_device (dev );
2250
2250
if (!acpi_dev )
@@ -2276,6 +2276,7 @@ static int ipmi_pnp_probe(struct pnp_dev *dev,
2276
2276
info -> si_type = SI_BT ;
2277
2277
break ;
2278
2278
case 4 : /* SSIF, just ignore */
2279
+ rv = - ENODEV ;
2279
2280
goto err_free ;
2280
2281
default :
2281
2282
dev_info (& dev -> dev , "unknown IPMI type %lld\n" , tmp );
@@ -2336,7 +2337,7 @@ static int ipmi_pnp_probe(struct pnp_dev *dev,
2336
2337
2337
2338
err_free :
2338
2339
kfree (info );
2339
- return - EINVAL ;
2340
+ return rv ;
2340
2341
}
2341
2342
2342
2343
static void ipmi_pnp_remove (struct pnp_dev * dev )
You can’t perform that action at this time.
0 commit comments