The initial kd_lookup() in kcovopen() is redundant as kcov is a cloning
authoranton <anton@openbsd.org>
Tue, 28 Dec 2021 17:50:10 +0000 (17:50 +0000)
committeranton <anton@openbsd.org>
Tue, 28 Dec 2021 17:50:10 +0000 (17:50 +0000)
commit81a83fa0ac51834161c07d1060db5f8c94a8ec60
tree0b53e3631e83746858d5f2adec2397c98a1681a8
parent51620ae2cf6f356e0b907596cad2f3026fbb647f
The initial kd_lookup() in kcovopen() is redundant as kcov is a cloning
device. Turn it into an assertion instead to better state the expected
semantics of D_CLONE.

Prompted after a discussion with visa@
sys/dev/kcov.c