]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - sound/firewire/fireface/amdtp-ff.c
locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_...
[mirror_ubuntu-bionic-kernel.git] / sound / firewire / fireface / amdtp-ff.c
index 780da9deb2f01b75b6b6fe4c29d352a134f2103d..77c7598b61abeb9b9c0ea7629b15a56d39fd37b6 100644 (file)
@@ -108,7 +108,7 @@ static unsigned int process_rx_data_blocks(struct amdtp_stream *s,
                                           unsigned int data_blocks,
                                           unsigned int *syt)
 {
-       struct snd_pcm_substream *pcm = ACCESS_ONCE(s->pcm);
+       struct snd_pcm_substream *pcm = READ_ONCE(s->pcm);
        unsigned int pcm_frames;
 
        if (pcm) {
@@ -127,7 +127,7 @@ static unsigned int process_tx_data_blocks(struct amdtp_stream *s,
                                           unsigned int data_blocks,
                                           unsigned int *syt)
 {
-       struct snd_pcm_substream *pcm = ACCESS_ONCE(s->pcm);
+       struct snd_pcm_substream *pcm = READ_ONCE(s->pcm);
        unsigned int pcm_frames;
 
        if (pcm) {