]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/blobdiff - sound/firewire/tascam/tascam-transaction.c
locking/atomics: COCCINELLE/treewide: Convert trivial ACCESS_ONCE() patterns to READ_...
[mirror_ubuntu-jammy-kernel.git] / sound / firewire / tascam / tascam-transaction.c
index 8967c52f503284a2d610352fcc7324a53a088b6d..2ad692dd4b137d0af15f8b74fcedb1aab2e80975 100644 (file)
@@ -148,7 +148,7 @@ static void async_midi_port_callback(struct fw_card *card, int rcode,
                                     void *callback_data)
 {
        struct snd_fw_async_midi_port *port = callback_data;
-       struct snd_rawmidi_substream *substream = ACCESS_ONCE(port->substream);
+       struct snd_rawmidi_substream *substream = READ_ONCE(port->substream);
 
        /* This port is closed. */
        if (substream == NULL)
@@ -173,7 +173,7 @@ static void midi_port_work(struct work_struct *work)
 {
        struct snd_fw_async_midi_port *port =
                        container_of(work, struct snd_fw_async_midi_port, work);
-       struct snd_rawmidi_substream *substream = ACCESS_ONCE(port->substream);
+       struct snd_rawmidi_substream *substream = READ_ONCE(port->substream);
        int generation;
 
        /* Under transacting or error state. */
@@ -282,7 +282,7 @@ static void handle_midi_tx(struct fw_card *card, struct fw_request *request,
                                bytes = 3;
                }
 
-               substream = ACCESS_ONCE(tscm->tx_midi_substreams[port]);
+               substream = READ_ONCE(tscm->tx_midi_substreams[port]);
                if (substream != NULL)
                        snd_rawmidi_receive(substream, b + 1, bytes);
        }