De-spl mly(4).

The driver already has mutex locking and holds its per-softc lock across
calls to the one function that still used splcam().
This commit is contained in:
John Baldwin 2018-08-21 10:08:12 +00:00
parent 2f0437dab1
commit 3b27d79c2a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=338130

View File

@ -1215,7 +1215,6 @@ mly_fetch_event(struct mly_softc *sc)
{
struct mly_command *mc;
struct mly_command_ioctl *mci;
int s;
u_int32_t event;
debug_called(1);
@ -1237,14 +1236,11 @@ mly_fetch_event(struct mly_softc *sc)
* Get an event number to fetch. It's possible that we've raced with another
* context for the last event, in which case there will be no more events.
*/
s = splcam();
if (sc->mly_event_counter == sc->mly_event_waiting) {
mly_release_command(mc);
splx(s);
return;
}
event = sc->mly_event_counter++;
splx(s);
/*
* Build the ioctl.