HomeFreeBSD

if_muge: Use lock assertion instead of broken locking in lan78xx_chip_init

Description

if_muge: Use lock assertion instead of broken locking in lan78xx_chip_init

Previously lan78xx_chip_init locked the driver's mutex if not already
locked, but unlocked it only in the case of error. This provided a
fairly clear indication that the function is already called with the
lock held, so just replace it with a lock assertion.

Sponsored by: The FreeBSD Foundation

Details

Provenance
emasteAuthored on
Parents
rS334212: if_muge: connect module to the build
Branches
Unknown
Tags
Unknown