HomeFreeBSD

bus_generic_detach: Remove redundant check

Description

bus_generic_detach: Remove redundant check

device_detach() checks the device state and only calls a driver's
DEVICE_DETACH method if the device is attached but not busy.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D47156

Details

Provenance
jhbAuthored on Wed, Oct 16, 6:08 PM
Reviewer
imp
Differential Revision
D47156: bus_generic_detach: Remove redundant check
Parents
rG42078dfb0f72: device_attach: Invoke BUS_CHILD_DETACHED if an attach routine fails
Branches
Unknown
Tags
Unknown