diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-07-30 14:48:29 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-07-30 14:52:30 +0200 |
commit | 89b4ab213feb11a5bece544cfa12374f66c2c47c (patch) | |
tree | 9a1725a0138dc002d2c65481cf96e5f8eb0e2e57 /include | |
parent | f7debfe54090d1a1c38e1f070be20d83bb70a8e0 (diff) | |
download | linux-89b4ab213feb11a5bece544cfa12374f66c2c47c.tar.bz2 |
ALSA: seq: virmidi: Use READ_ONCE/WRITE_ONCE() macros
The trigger flag in vmidi object can be referred in different contexts
concurrently, hence it's better to be put with READ_ONCE() and
WRITE_ONCE() macros to assure the accesses.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include')
-rw-r--r-- | include/sound/seq_virmidi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/seq_virmidi.h b/include/sound/seq_virmidi.h index d488dcfa3a4e..796ce7772213 100644 --- a/include/sound/seq_virmidi.h +++ b/include/sound/seq_virmidi.h @@ -36,7 +36,7 @@ struct snd_virmidi { int seq_mode; int client; int port; - unsigned int trigger: 1; + bool trigger; struct snd_midi_event *parser; struct snd_seq_event event; struct snd_virmidi_dev *rdev; |