Don't claim devices that we fail to probe for. Reverse the sense of a test
so that we return failure when we've failed and succeed when we succeed. Otherwise, users always get a sn device :-(. PR: 18431 Submitted by: <sanpei@sanpei.org> MIHIRA Yoshiro-san
This commit is contained in:
parent
9a1c8571c7
commit
c927ee19a4
@ -63,8 +63,8 @@ sn_isa_probe (device_t dev)
|
||||
if (isa_get_logicalid(dev)) /* skip PnP probes */
|
||||
return (ENXIO);
|
||||
if (sn_probe(dev, 0) != 0)
|
||||
return (0);
|
||||
return (ENXIO);
|
||||
return (ENXIO);
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
|
Loading…
x
Reference in New Issue
Block a user