mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196858
@ -225,11 +225,7 @@ rp_pcidetach(device_t dev)
|
||||
{
|
||||
CONTROLLER_t *ctlp;
|
||||
|
||||
if (device_get_state(dev) == DS_BUSY)
|
||||
return (EBUSY);
|
||||
|
||||
ctlp = device_get_softc(dev);
|
||||
|
||||
rp_pcireleaseresource(ctlp);
|
||||
|
||||
return (0);
|
||||
@ -240,11 +236,7 @@ rp_pcishutdown(device_t dev)
|
||||
{
|
||||
CONTROLLER_t *ctlp;
|
||||
|
||||
if (device_get_state(dev) == DS_BUSY)
|
||||
return (EBUSY);
|
||||
|
||||
ctlp = device_get_softc(dev);
|
||||
|
||||
rp_pcireleaseresource(ctlp);
|
||||
|
||||
return (0);
|
||||
|
Loading…
Reference in New Issue
Block a user