Searched hist:"7 a7ca53f69ac36516d29847f3323d17ccb3ac4fe" (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/cam/ |
H A D | cam_sim.c | diff 7a7ca53f69ac36516d29847f3323d17ccb3ac4fe Fri Sep 04 20:18:05 CEST 2020 Bjoern A. Zeeb <bz@FreeBSD.org> 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.
Reviewed by: imp; no-objections by: mav MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D26286
|