Skip to content

Commit

Permalink
ALSA: usb-audio: make read-only array marker static const
Browse files Browse the repository at this point in the history
Don't populate the read-only array marker on the stack but instead make
it static const. Also makes the object code a little smaller.

Signed-off-by: Colin Ian King <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
ColinIanKing authored and tiwai committed Aug 10, 2022
1 parent 3026771 commit 6b2394b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/usb/pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1269,7 +1269,7 @@ static inline void fill_playback_urb_dsd_dop(struct snd_usb_substream *subs,
unsigned int wrap = subs->buffer_bytes;
u8 *dst = urb->transfer_buffer;
u8 *src = runtime->dma_area;
u8 marker[] = { 0x05, 0xfa };
static const u8 marker[] = { 0x05, 0xfa };
unsigned int queued = 0;

/*
Expand Down

0 comments on commit 6b2394b

Please sign in to comment.