These checks against BUSY aren't needed: the newbus layer does this
already with the appropriate locks held... There's no need to do it here, so just delete the checks.
This commit is contained in:
parent
f6a4f4b521
commit
520998911a
@ -225,11 +225,7 @@ rp_pcidetach(device_t dev)
|
|||||||
{
|
{
|
||||||
CONTROLLER_t *ctlp;
|
CONTROLLER_t *ctlp;
|
||||||
|
|
||||||
if (device_get_state(dev) == DS_BUSY)
|
|
||||||
return (EBUSY);
|
|
||||||
|
|
||||||
ctlp = device_get_softc(dev);
|
ctlp = device_get_softc(dev);
|
||||||
|
|
||||||
rp_pcireleaseresource(ctlp);
|
rp_pcireleaseresource(ctlp);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
@ -240,11 +236,7 @@ rp_pcishutdown(device_t dev)
|
|||||||
{
|
{
|
||||||
CONTROLLER_t *ctlp;
|
CONTROLLER_t *ctlp;
|
||||||
|
|
||||||
if (device_get_state(dev) == DS_BUSY)
|
|
||||||
return (EBUSY);
|
|
||||||
|
|
||||||
ctlp = device_get_softc(dev);
|
ctlp = device_get_softc(dev);
|
||||||
|
|
||||||
rp_pcireleaseresource(ctlp);
|
rp_pcireleaseresource(ctlp);
|
||||||
|
|
||||||
return (0);
|
return (0);
|
||||||
|
Loading…
Reference in New Issue
Block a user