HomeFreeBSD

MFC r365333:

Description

MFC r365333:

cam_sim: harmonize code related to acquiring a mtx

cam_sim_free(), cam_sim_release(), and cam_sim_hold() all assign
a mtx variable during declaration and then if NULL or the mtx is
held may re-asign the variable and/or acquire/release a lock.

Harmonize the code, avoiding double assignments and make it look
the same for all three function (with cam_sim_free() not needing
an extra case).

No functional changes intended.

Details

Provenance
bzAuthored on
Parents
rS367366: MFC r364305:
Branches
Unknown
Tags
Unknown